我觉得都是对的,可是他就是不出表,一直说错了。头大了都快。⊙∀⊙?
语法错误。mysql创建表时,主键是这么 指定的
create table tb_lll(id int not null,code varchar(20) not null, primary key (id))
1.你先看看你的表创建成功没有
2.多条插入使用的是分号分隔,字符串用 '排序'
建库后,数据库有没,如果没有,建议重连刷新一下。建表应该是create table,不是create tables吧。
错误1:table
错误2:主键语法