Is prefixing each field name in a table with abbreviated table name a good practice?

后端 未结 14 2009
-上瘾入骨i
-上瘾入骨i 2020-12-16 19:26

Do you prefix each field in a table with abbreviated table name?

Example:

Table: User

Fields:
user_id
user_name
user_password

Or d

14条回答
  •  情歌与酒
    2020-12-16 20:19

    For all the reasons given, I don't think this is a good idea. Besides, you don't prefix all the methods in your classes with the class names, do you? So why do it for database objects?

提交回复
热议问题