1. Diagram to sql file
See File -> Export -> Forward Engineer SQL Create Script...
2.建表时缩写字
PK
Belongs to primary key
作为主键
NN
Not Null
非空
UQ
Unique index
不能重复
BIN
Is binary column
存放二进制数据的列
UN
Unsigned data type
无符号数据类型(需要整数形数据)
ZF
Fill up values for that column with 0’s if it is numeric
填充0位(例如指定3位小数,整数18就会变成18.000)
AI
Auto Incremental
自增长
3. Export data from database
要先建立和数据库的连接,连接不上的原因可能是服务器没启动起来
然后再export
http://www.cnblogs.com/daimage/archive/2012/02/25/2367534.html
本文介绍SQL建表时常用的缩写及其含义,如主键(PK)、非空(NN)等,并提供了从数据库导出数据的方法及注意事项。
2534

被折叠的 条评论
为什么被折叠?



