如何在mysql中檢查not like <<something>>
?AND NOT LIKE不工作
我試過以下,但結果總是空: http://sqlfiddle.com/#!2/29a97/1
SELECT *
FROM convertList
WHERE server='1' and converting not like '%1%'
ORDER BY important DESC
也試過:
SELECT *
FROM convertlist
WHERE server = '1'
AND NOT converting LIKE '%1%'
ORDER BY important DESC
PS
名單是100%不爲空,我應該至少有10個結果。
我使用MySQL的Percona的5.6。
如果你不使用通配符,就等於=。 –