今天做hibernate,既不能自动创建表,也不能将数据插入数据库。插入时报错:
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 'desc, firstType_id) values ('aa', 'aaa', 4)' at line 1
将字段desc改为desc1,name改为typename,问题就全都解决啦。
费了我2个小时时间,郁闷!
hibernate,我跟你拼啦!