当前位置:网站首页>MySql 数据库表名命名规则---方便自动转换工具转换
MySql 数据库表名命名规则---方便自动转换工具转换
2022-07-23 04:26:00 【wowocpp】
MySql 数据库表名命名规则—方便自动转换工具转换
表名采用26个英文字母(区分大小写)和0-9自然数(一般不需要)加上下划线“”组成,多个单词用下划线“”分隔
1.表名的格式一般为【模块名称-详细信息】
2.全部小写命令,禁止出现大写
3.表的名称一般使用名词或者动宾短语
4.建议不适用缩写,填写完整单词
5.表的名字不能取太长,一般不超过三个英文单词,不推荐中文拼音
6.多对多的连接表可以使用两个表的前缀作为表名
7.表名的单词一般都为单数(例:推荐Employee,不推荐Employees)
8.禁止使用数据库关键字,如name、time、datetime、password等
9.使用SQL语句建表时,必须填写描述信息
10.日志表一般以Sys_开头,数据字典表一般以SD_开头,系统字典表一般以DT_开头
11.常用表名约定
user 用户
category 分类
goods 商品、物品
good_gallery 物品相册
good_cate 物品分类
attr 属性
article 文章
cart 购物差
feedback 用户反馈
order 订单
site_nav 页头和页尾导航
site_config 系统配置表
admin 后台用户
role 后台用户角色
access 后台操作权限
role_admin 后台用户对应的角色
access_role 后台角色对应的权限
边栏推荐
- Ultra Fast Deep Lane Detection with Hybrid Anchor Driven Ordinal Classification论文解读
- kex_ exchange_ Identification: read: connection reset by peer imperfect solution (one)
- LeetCode每日一题(1946. Largest Number After Mutating Substring)
- Hololens third perspective development [nanny level tutorial] [stepping on the pit record]
- RTC 性能自动化工具在内存优化场景下的实践
- CV (3)- CNNs
- 仅用5000行代码,在V853上AI渲染出一亿幅山水画
- Sequence model (2) - natural language processing and word nesting
- Practice of RTC performance automation tool in memory optimization scenario
- SAP batch import template (WBS batch import as an example)
猜你喜欢

数据湖:从数据仓库看数据湖

HoloLens第三视角开发【保姆级教程】【踩坑记录】

MySQL queries all table names and column information of the database through SQL

2022/7/21

Ultra Fast Deep Lane Detection with Hybrid Anchor Driven Ordinal Classification论文解读

Network data leakage events occur frequently, how to protect personal privacy information?

22. Notes on the use of combobox in WPF

Introduction to partition operators, broadcast variables and accumulators of 32 spark

Seektiger's okaleido has a big move. Will the STI of ecological pass break out?

32 < tag array and bit operation > supplement: Lt. sword finger offer 56 - I. number of occurrences of numbers in the array
随机推荐
【Delphi】制作控件面板安装图标的简单方法(译)
Sequence model (III) - sequence model and attention mechanism
序列模型(三)- 序列模型和注意力机制
腾讯云客户端命令行工具tccli主流程解析
MySQL master-slave replication
李宏毅机器学习2022-HW1
PyQt5_pyqtgraph鼠标在折线图上画线段
Is there a fraud in opening an account with Huatai Securities? Is it safe
赛尔运维:高校IT运维服务新样本
Flask学习笔记
PyQt5_QListWidget分页多选控件
Richview textbox items textbox
Data warehouse: workflow design and Optimization Practice
谈谈实施数据治理时常犯的10大错误
[qt5.12] qt5.12 installation tutorial
redis伪集群一键部署脚本---亲测可用
What is the difference between College coder and 985 programmer?
Information security is in danger, and it is urgent to control the leakage of enterprise data assets
Use the x2mindspire tool of mindstudio to convert training scripts
CloudCompare&PCL 点云点匹配(基于点到面的距离)