命名您的“用户”的最佳做法是什么?表? [英] What is the best practice in naming your "user" table?

查看:395
本文介绍了命名您的“用户”的最佳做法是什么?表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是命名表时尝试遵循的三个最佳做法:

Here's three best practices I try to follow when naming tables:


  • 不要为复数表命名
  • 不要使用保留的关键字(例如user)命名表格
  • 不要在表格名称前加上tbl类型前缀

  • Never name a table with plural (such as "users")
  • Never name a table using a reserved keyword (such as "user")
  • Never prefix your table name with "tbl" or some other object type prefix

记住这一点,您如何建议命名保存用户身份的表?

Keeping all this in mind, how do you recommend naming the table that will hold user identities?

推荐答案

我同意,不要使用任何保留字,引号或括号或转义形式的保留字。

I agree, do not use any reserved words, or quoted or bracketed or escaped forms of reserved words.

将用户表命名。

您可能对 此答案 和google的 ISO标准11179 以命名指南

这篇关于命名您的“用户”的最佳做法是什么?表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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