问题描述
我在从OpenFire Monitoring Service插件检索消息时遇到以下问题。我发现该错误是由于数据库中的查询错误所致,但仍然无法检测到该查询无法正常运行的错误。
SELECT
fromjid,fromjidresource,tojid,tojidresource,sentdate,body,stanza,messageid,barejid
FROM
(
SELECT
DISTINCT ofmessagearchive.fromjid,ofmessagearchive.fromjidresource,ofmessagearchive.tojid,ofmessagearchive.tojidresource,ofmessagearchive.sentdate,ofmessagearchive.body,ofmessagearchive.stanza,ofmessagearchive.messageid,ofconparticipant.barejid
FROM
ofmessagearchive
INNER JOIN ofconparticipant ON ofmessagearchive.conversationid =
ofconparticipant.conversationid
WHERE
(
ofmessagearchive.stanza IS NOT NULL
OR ofmessagearchive.body IS NOT NULL
)
AND ofmessagearchive.messageid IS NOT NULL
AND ofmessagearchive.sentdate >= 0
AND ofmessagearchive.sentdate <= 1602748770287
AND ofconparticipant.barejid = '[email protected]'
AND (
ofmessagearchive.tojid = '[email protected]'
OR ofmessagearchive.fromjid = '[email protected]'
)
ORDER BY
ofmessagearchive.sentdate DESC
LIMIT
100
) AS part
ORDER BY
sentdate
执行以下查询时出现错误
ORA-00907:缺少右括号
命令行错误:32列:9
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)