问一个数据库表命名的问题。

WBOY
Release: 2016-06-23 13:37:55
Original
983 people have browsed it

比如两张表性质一样,你们觉得设置名称为
table1
table2

还是
table_first
table_second

或者
tableFirst
tableSecond

或者
table1st
table2nd

哪种写法好,和专业不专业有关系吗?


回复讨论(解决方案)

只要你分的清就行
一般应能从表名感知表的用途
如果使用元数据(或数据字典)技术,那么表名应能通过计算得到

表名不要用camel case,特别是在pgsql那个奇葩下
如果名称要由程序读取识别,建议用阿拉伯数字

分表???用
table_001
table_002

阿拉伯数字!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!