create table S (SNO text, SNAME text, STATUS number, CITY text)
insert into S values('S1','Smith','20','London')
insert into S values('S2','Jones','10','Paris')
insert into S values('S3','Blake','30','Paris')
insert into S values('S4','Clark','20','London')
insert into S values('S5','Adams','30','Athens')
我很难弄清楚为什么这不是一个有效的 SQL 查询,我尝试用谷歌搜索答案但无济于事。
我曾尝试使用 JDBC 查询 Sqlite 数据库,也尝试将其插入到 phpMyAdmins 查询字段中。这是 phpMyAdmin 显示的错误消息,
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'number, CITY text) insert into S values('S1','Smith','20','London') insert int' at line 1