注册

jpa适配达梦8,sql语句该怎么调整

卫斯理 2023/12/14 637 2

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【操作系统】:win11
【CPU】:
【问题描述】*:项目使用jpa进行sql编写的。
@Query(value = "select id,name,alias from KG_SEARCH.t_namespace where user_Id = ?1 order by create_At desc ", nativeQuery = true)
List<Namespace> getByUserId(@Param("userId") String userId);
在本地执行这段代码,报错:
could not execute query; nested exception is org.hibernate.exception.GenericJDBCException: could not execute query

追加问题:
对于不同数据类型的参数,sql该怎么代码中获取呢

回答 0
暂无回答
扫一扫
联系客服