在创建表的时候,比如:
如果把not null 写成notnull那就不对了~primary key 也不能连起来写!
create table test(id int(11) not null primary key);
如果把not null 写成notnull那就不对了~primary key 也不能连起来写!
本文通过一个具体的例子强调了在SQL语法中正确使用关键字的重要性。例如,在创建表时,“NOT NULL”和“PRIMARY KEY”等关键字必须正确书写且不能遗漏空格。
create table test(id int(11) not null primary key);

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