MySQL naming conventions, should field name include the table name?

前端 未结 9 2314
梦谈多话
梦谈多话 2021-02-07 08:59

A friend told me that I should include the table name in the field name of the same table, and I\'m wondering why? And should it be like this? Example:

(Table)         


        
9条回答
  •  后悔当初
    2021-02-07 09:19

    I see no reason to include the table name, it's superfluous. In the queries you can refer to the fields as

    . anyway (eg. "user.id").

    提交回复
    热议问题