当前位置: 技术问答>java相关
帮我看看我的sql语句写的有什么问题?
来源: 互联网 发布时间:2015-07-02
本文导语: 帮我看看我的sql语句写的有什么问题? String sql="insert into HomeworkInfo(HomeworkTeacher,HomeworkType," + "values('" + homeworkteacher + "','" + homeworktype +"')"; HomeworkTeacher,HomeworkType 都是String 型的 | String sql="ins...
帮我看看我的sql语句写的有什么问题?
String sql="insert into HomeworkInfo(HomeworkTeacher,HomeworkType," + "values('" + homeworkteacher + "','" + homeworktype +"')";
HomeworkTeacher,HomeworkType 都是String 型的
String sql="insert into HomeworkInfo(HomeworkTeacher,HomeworkType," + "values('" + homeworkteacher + "','" + homeworktype +"')";
HomeworkTeacher,HomeworkType 都是String 型的
|
String sql="insert into HomeworkInfo(HomeworkTeacher,HomeworkType) values('" + homeworkteacher + "','" + homeworktype +"')";
|
String sql="insert into HomeworkInfo(HomeworkTeacher,HomeworkType) values('" + homeworkteacher + "','" + homeworktype +"')";
少了一个“)”
少了一个“)”
|
try:
String sql="insert into HomeworkInfo(HomeworkTeacher,HomeworkType)" + "values('" + homeworkteacher + "','" + homeworktype +"')";
String sql="insert into HomeworkInfo(HomeworkTeacher,HomeworkType)" + "values('" + homeworkteacher + "','" + homeworktype +"')";