问题描述
我正在使用MySql数据库。我喜欢在“ tbl_users”上编写本机查询。我写了如下查询:
@Query(nativeQuery = true,value = "SELECT * FROM tbl_users AS u WHERE u.id IN (:ids)")
List<User> findByUserIdIn(@Param("ids") Set<Long> ids);
但是我的spring应用程序抛出了类似的异常
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')'
什么是正确的查询,或者我该如何克服这个问题。请帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)