问一个数据库表命名的有关问题

WBOY
Release: 2016-06-13 12:16:56
Original
890 people have browsed it

问一个数据库表命名的问题。
比如两张表性质一样,你们觉得设置名称为
table1
table2

还是
table_first
table_second

或者
tableFirst
tableSecond

或者
table1st
table2nd

哪种写法好,和专业不专业有关系吗?
------解决思路----------------------
只要你分的清就行
一般应能从表名感知表的用途
如果使用元数据(或数据字典)技术,那么表名应能通过计算得到

------解决思路----------------------
表名不要用camel case,特别是在pgsql那个奇葩下
如果名称要由程序读取识别,建议用阿拉伯数字
------解决思路----------------------
分表會習慣用
table_001
table_002
------解决思路----------------------
阿拉伯数字!

Related labels:
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
Popular Tutorials
More>
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!