我正在访问java程序中的Access数据库,但是当我执行sql命令时出现错误:
static String SQLCreate = "CREATE TABLE CONTACT_INFO (" +
"Contact_ID INTERGER NOT NULL PRIMARY KEY," +
"First_Name VARCHAR(20) NOT NULL," +
"MI CHAR(1)," +
"Last_Name VARCHAR(20) NOT NULL," +
"Street VARCHAR(50) NOT NULL," +
"City VARCHAR(2) NOT NULL," +
"ZIP VARCHAR(10) NOT NULL);";
我看不出有什么不对劲,也许一双新的眼睛会有所帮助。 提前谢谢。
答案 0 :(得分:2)
你有一个错字。将INTERGER
替换为INTEGER
,它应该有效。