Should I Always Fully Qualify Column Names In SQL?

后端 未结 11 1143
小鲜肉
小鲜肉 2021-02-14 02:48

Out of interest when working with SQL statements should I always use the fully qualifed column name (tablename.columnname) even if only working with one table e.g.



        
11条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-14 03:28

    If you are only selecting from one table I do not see the overall usefulness. If you are selecting from multiple tables, qualifying the column names would certainly make it easier to read for any other developer who may not be familiar with your database schema.

提交回复
热议问题