数据库表名称是单数还是复数? [英] Singular or plural database table names?

查看:762
本文介绍了数据库表名称是单数还是复数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

表命名难题:单数vs.复数

使用单数或复数数据库表名称更好吗?有公认的标准吗?

Is it better to use singular or plural database table names ? Is there an accepted standard ?

我听到了反对和反对的说法,你们怎么看?

I've heard arguments for and against it, what do you guys think ?

推荐答案

恕我直言,表名应像客户一样是复数形式.

IMHO, Table names should be plural like Customers.

如果类名映射到客户"表中的一行,则其名称应与客户"一样单数.

Class names should be singular like Customer if it maps to a row in Customers table.

这篇关于数据库表名称是单数还是复数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆