What is the meaning of <> in mysql query?

前端 未结 6 1417
醉酒成梦
醉酒成梦 2020-12-28 12:13

I have a MySQL query that includes <> in it. I don\'t know the exact usage of it.

SELECT * FROM table_laef WHERE id = ? AND genre_type <> \'LIVE\'
<         


        
6条回答
  •  攒了一身酷
    2020-12-28 12:29

    In MySQL, <> means Not Equal To, just like !=.

    mysql> SELECT '.01' <> '0.01';
            -> 1
    mysql> SELECT .01 <> '0.01';
            -> 0
    mysql> SELECT 'zapp' <> 'zappp';
            -> 1
    

    see the docs for more info

提交回复
热议问题