gpt4 book ai didi

java - HQL 缺少关键字

转载 作者:行者123 更新时间:2023-12-01 18:14:48 25 4
gpt4 key购买 nike

我已经寻找了几个小时,但找不到以下查询中缺少的内容:

SELECT count(*) FROM Request r JOIN r.status status WHERE r.uniqueId = '123456'

我收到以下异常:

java.sql.SQLSyntaxErrorException: ORA-00905: missing keyword

最佳答案

根据Doc,我认为您错过了关键字AS:

SELECT count(*) 
FROM Request r INNER JOIN
r.status AS status -- AS missed
WHERE r.uniqueId = '123456'

关于java - HQL 缺少关键字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60396100/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com