我将 Play Framework (2.3.1) 与 Slick (play-slick 版本 0.8.0-M1) 和 MySQL 数据库 (5.5.28) 一起使用。
我的一个查询导致 MySQLSyntaxErrorException:
Preparing statement: select x2."id", x2."course_id", x2."trainee_id", x2."transaction_id" from "trainee_grouptraining_GroupBooking" x2 where x2."course_id" = 1
问题似乎与双引号有关,因为其他查询工作得很好,并且它们使用如下单引号:
Preparing statement: select x2.`id`, x2.`courseLanguage`, x2.`date`, x2.`description`, x2.`duration`, x2.`kind`, x2.`maxParticipants`, x2.`name`, x2.`courseType_id`, x2.`trainer_id` from `Course` x2 where x2.`id` = 1
我该怎么办?