mysql外键约束命名规范
时间: 2023-10-14 09:06:53 浏览: 236
根据引用,MySQL的外键约束命名规范为fk_表名_字段名。这意味着在创建外键约束时,应该使用fk_表名_字段名的格式来命名外键约束。其中,表名是指外键所在的表的名称,字段名是指外键所在的字段的名称。通过这样的命名规范,可以清晰地表示外键约束与其所属的表和字段之间的关系。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [mysql命名规范](https://blog.csdn.net/bitterliquor/article/details/103573641)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [MySQL字段约束条件,外键约束条件,表关系](https://blog.csdn.net/weixin_67531112/article/details/126340178)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文