查询不在Sqlite中返回,但在Mysql中有效

时间:2016-05-28 02:45:53

标签: mysql database sqlite

我不确定为什么这个查询在Sqlite中不起作用。没有特定于MySql的运算符/命令。它适用于mySql,但在sqlite中返回0结果。它们都具有完全相同的数据库。

SELECT s1.wordid, s1.synsetid, s1.sensekey, synsets.definition
   , s2.wordid AS matchedWordID, w.*
FROM senses AS s1
   LEFT JOIN synsets ON s1.synsetid = synsets.synsetid
   LEFT JOIN senses AS s2 ON s1.synsetid = s2.synsetid AND s1.wordid <> s2.wordid
   LEFT JOIN words AS w ON s2.wordid = w.wordid
WHERE s1.wordid = 79459
;

0 个答案:

没有答案