SQL:
insert into student (firstName,email,password) value ('mayank','dave123@gmail.com','1234')
错误:
ORA-00926:缺少VALUES关键字
答案 0 :(得分:1)
应该是这样吗?您没有提及您正在使用哪个数据库,但它正在寻找VALUES关键字。
String insertQuery = "insert into student (firstName,email,password) values ('" + firstName + "','" + email+ "','" + password + "')";
答案 1 :(得分:0)
你错过了单词值中的字母(S),所以语句将是
insert into student (firstName,email,password)
Values
('mayank','dave123@gmail.com','1234')