query “not equal” doesn't work

前端 未结 7 2107
时光说笑
时光说笑 2020-12-05 23:01

I have very simple query like this:

SELECT * FROM `all_conversations` WHERE `deleted_1` != \'1\';

And my deleted_1 be default

7条回答
  •  我在风中等你
    2020-12-05 23:57

    How about removing the single quotes around the 1?

    SELECT * FROM `all_conversations` WHERE `deleted_1` != 1;
    

提交回复
热议问题