我有这个应用程序,java spring boot 和 mysql db。当我尝试运行以下查询时,出现此错误。 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 'email ='rahul@gmail.com.com'' at line 1
有谁知道为什么吗?
@Query(value = "SELECT voucher_code FROM voucher INNER JOIN "
+ "offer ON offer.name = voucher.offer "
+ " email =:email", nativeQuery = true)
List<Voucher> getVouchers(@Param("email") String email);
喵喵时光机
相关分类