我读了这个 tutorial ,但我对此感到困惑。
在这种情况下我应该使用什么命名风格:
QuestionTypes
或 question_types
? QuestionTypeID
或 QuestionType_ID
, question_type_id
? 我知道 MySQL 工作台何时创建 .sql 文件,
QuestionType_ID
将转换为 questiontype_id
,所以我应该使用这种风格:QuestionType
?非常感谢。
最佳答案
如果您想遵循该特定约定,您的表将被命名为 question_types
,以及字段 question_type_id
.
我不遵循该约定,因此我将表命名为 QuestionType
和领域QuestionTypeId
.
关于SQL 命名约定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17058940/