statusINTが8で、queueStatusINTが2に等しくなく、タイプが$ typeの場合、queueStatusINTを更新しようとしています。しかし、私はエラーが発生し続けます:
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ queueStatusINT!='2’, type=’int'' at line 1
このSQLクエリを使用して更新を行います:
UPDATE $mysqlTable SET queueStatusINT='2’ WHERE statusINT='8’, queueStatusINT!='2’, type=‘$type’;
また、SELECT コマンドで NOT equal to を実行できることにも気付きました…</p>
SELECT nameTXT FROM $mysqlTable WHERE queueStatusINT!='2' ORDER BY queueStatusINT DESC, priorityINT DESC, id ASC LIMIT 7;