SQL: How to perform string does not equal

前端 未结 6 416
长发绾君心
长发绾君心 2020-12-22 20:34

I have the following query

SELECT * FROM table
WHERE tester <> \'username\';

I am expecting this to return all the results where test

6条回答
  •  情歌与酒
    2020-12-22 20:54

    NULL-safe condition would looks like:

    select * from table
    where NOT (tester <=> 'username')
    

提交回复
热议问题