当有多个相似项目时,命名 table 列的最佳方式是什么?
What is the best way to name a table column when there are multiple of similar items?
我正在尝试创建一个 table,但认为命名列的最佳方式是什么。
我阅读了一些关于数据库 table 命名约定的文章并看到:
而不是 supporterOne 或 supporterone,更好的方法是 supporter_one .
我的问题是这两个名字哪个更合适?
supporter_one
supporter_two
supporter_three
或
supporter_1
supporter_2
supporter_3
或者没关系,我想用什么就用什么?
您可以使用这种格式,因为如果您要根据某些场景动态读取或写入选定列中的数据,这将很容易
supporter_1
supporter_2
supporter_3
我正在尝试创建一个 table,但认为命名列的最佳方式是什么。
我阅读了一些关于数据库 table 命名约定的文章并看到:
而不是 supporterOne 或 supporterone,更好的方法是 supporter_one .
我的问题是这两个名字哪个更合适?
supporter_one
supporter_two
supporter_three
或
supporter_1
supporter_2
supporter_3
或者没关系,我想用什么就用什么?
您可以使用这种格式,因为如果您要根据某些场景动态读取或写入选定列中的数据,这将很容易
supporter_1
supporter_2
supporter_3