mysql中设置非空属性,具体方法如下:
CREATE TABLE test(ID BIGINT NOT NULL AUTO_INCREMENT,BIZCODE VARCHAR(20) NOT NULL , #非空属性CONTENT VARCHAR(1000) COMMENT,PRIMARY KEY (ID))character set = utf8;
CREATE TABLE test(
ID BIGINT NOT NULL AUTO_INCREMENT,
BIZCODE VARCHAR(20) NOT NULL , #非空属性
CONTENT VARCHAR(1000) COMMENT,
PRIMARY KEY (ID)
)character set = utf8;