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

来源:2-4 JDBC实战---搭建模型层 Ⅱ

千山暮雪CN

2017-10-12 20:16

String sql = ""

+ "insert into imooc_goddess"

+ "(user_name,sex,age,birthday,email,mobile, "

+ "create_user,create_data,update_user,update_date,isdel)"

+ "value("

+" ?,?,?,?,?,?,?,current_date(),?,current_date(),?,)";

提示括号处出错  可是哪里错了?求各位路过的大神指点,在线等,谢谢

写回答 关注

3回答

  • 小小怪下士的荣耀
    2018-06-03 17:31:54

     知道怎么解决不 我也碰到了 卡在了这里


    千山暮雪CN

    我这个最后一个?后面多加了一个,

    2018-06-12 20:55:29

    共 1 条回复 >

  • 千山暮雪CN
    2018-05-22 17:36:26

    你最后加了一个,

  • 千山暮雪CN
    2017-10-12 20:22:09

    value也加了s

JDBC之 “ 对岸的女孩看过来”

一起领略JDBC的奥秘,为进一步学习集成框架打下良好的基础

99329 学习 · 856 问题

查看课程

相似问题