String sql="" + "insert into imooc_goddess" + "(user_name,sex,age,birthday,email,mobile,"+"create_user,create_date,update_user,update_date,isdel)"; "values(" + ")";为什么我这个老是报错"values(" + ")";
@慕粉3380558 ,你這個也不對啊,Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 '?,?,?,?,?,?,?,?,?,?,?)' at line 1
String sql="" + "insert into imooc_goddess " + " (user_name,sex,age,birthday,email,mobile,"+"create_user,create_date,update_user,update_date,isdel)"+" values(?,?,?,?,?,?,?,?,?,?,?)";
String sql="" + "insert into imooc_goddess " + " (user_name,sex,age,birthday,email,mobile,"+"create_user,create_date,update_user,update_date,isdel)"+" values("?,?,?,?,?,?,?,?,?,?,?")";