Should I Always Fully Qualify Column Names In SQL?

后端 未结 11 1168
小鲜肉
小鲜肉 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:38

    Don't solve problems you don't have yet. (At least that's what my team lead is always telling me.) I'm sure the monkey who someday has to add a JOIN to your statement can figure it out.

提交回复
热议问题