标签:名称 var har ble style 非空约束 span 使用 primary
非空约束指字段的值不能为空,如果为空则报错
mysql> CREATE TABLE tb_emp6
-> (
-> id INT(11) PRIMARY KEY,
-> name VARCHAR(25) NOT NULL, # 指定员工的名称不能为空
-> deptId INT(11),
-> salary FLOAT
-> );
标签:名称 var har ble style 非空约束 span 使用 primary
原文地址:http://www.cnblogs.com/pzk7788/p/6881265.html