gpt4 book ai didi

sqlite - SQLITE_ERROR]通过使用all all输入不完整

转载 作者:行者123 更新时间:2023-12-03 12:27:08 25 4
gpt4 key购买 nike

如果我想将这些表行放在一起,则会出现以下错误

[SQLITE_ERROR] SQL错误或缺少数据库(输入不完整)

每个人都单独工作。

SELECT x.ActionListId, x.wordindexed, x.word, x.wordreplacement
from Words x
where x.wordindexed like "%Hallo %"
limit 1
union all
SELECT p.ActionListId, p.wordindexed, p.word, p.wordreplacement
from Words p
where p.word like "%Tool%"
limit 1;

最佳答案

这里的一种选择是包装当前的子查询,然后将其合并:

SELECT ActionListId, wordindexed, word, wordreplacement
FROM
(
SELECT *
FROM Words
WHERE wordindexed LIKE "%Hallo %"
LIMIT 1
) t1
UNION ALL
SELECT ActionListId, wordindexed, word, wordreplacement
FROM
(
SELECT *
FROM Words
WHERE wordindexed LIKE "%Tool %"
LIMIT 1
) t2;


这是一个演示链接,显示此语法有效:

Demo

关于sqlite - SQLITE_ERROR]通过使用all all输入不完整,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53336023/

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