Can I make WHERE col LIKE '%' select NULL values too?

后端 未结 5 1756
我在风中等你
我在风中等你 2021-02-04 13:25

I am trying to make a selection from a MySQL database using the syntax WHERE col LIKE \'%\' but I want to select even NULL values with that query. Is t

5条回答
  •  抹茶落季
    2021-02-04 14:14

    Use COALESCE instead of IFNULL if you want to use it with java createQuery

    WHERE COALESCE (xxx, '') LIKE '%'
    

提交回复
热议问题