SQL:错误而在数据库中插入数据
insert into student (firstName,email,password) value ('mayank','[email protected]','1234')
错误:
ORA-00926: missing VALUES keyword
SQL:错误而在数据库中插入数据
insert into student (firstName,email,password) value ('mayank','[email protected]','1234')
错误:
ORA-00926: missing VALUES keyword
它应该是这个吧?你没有提到你正在使用哪个数据库,但它正在寻找VALUES关键字。
String insertQuery = "insert into student (firstName,email,password) values ('" + firstName + "','" + email+ "','" + password + "')";
我使用Oracle数据库11g EE.Error解决了谢谢。 –
你错过了字值的信(S),所以该语句将被
insert into student (firstName,email,password)
Values
('mayank','[email protected]','1234')
你错过了'values'关键字,而不是你输入'value' – PacMan