老是报错,说
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
// 拼写sql语句
String sql = "" +
" selete * from imooc_goddess "
+ " set user_name=?,sex=?,age=?,birthday=?,email=?,mobile=?, "
+ " update_user=?,update_date=current_date(),isdel=? "
+ " where id=? ";
?在第一行要有,后面要给这些属性赋值,第一个属性赋值为任意类型的字符串,所以要用?表示
你的connection有问题吧,你看自己倒错包没有?两个一样的connection是不需要强转的啊。