Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在我的数据库中使用数字作为表名吗
例如
create table `tbl_love143`;
这是一个好的命名约定吗?
如果您的数据库引擎允许使用数字,我认为没有理由不使用它们。但是,鉴于您的示例tbl_love143,这是否意味着您还有 142 个其他“爱”表?如果是这样,那么您的数据库设计存在严重问题!
tbl_love143
总之,数字很好,但拥有多个存储相同“类型”信息的表就不行了。