且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我应该始终完全限定SQL中的列名吗?

更新时间:2023-12-01 09:13:34

***这样做-不会增加任何复杂性,并且可以防止将来出现错误。

It's better if you do - it doesn't add any complexity, and it can prevent errors in the future.

系统,您不应该拥有-就像编程语言中的名称空间一样。理想的情况是不要有冲突,但是会过多使用显式名称,从而使代码混乱。

But in a well-defined system, you shouldn't have to - it's like namespaces in programming languages. The ideal is not to have conflicts, but it can clutter the code with the superfluous use of explicit names.

-Adam