报的错是:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax 把sql语句改成insert into c (id,name,age) values(null,?,?)就不报错了,这是为什么吗啊
调试欢乐多
insert into c (name,age) values(?,?)
name varchar(20),
age int) ;就行啦