How to check if MySQL returns null/empty?

前端 未结 6 1434
一个人的身影
一个人的身影 2020-12-08 07:38

In DB I have a table with a field called fk_ownerID. By default, when I add a new table row, the fk_ownerID is empty. In Toad for MySQL, this is sh

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 08:09

    Also, don't forget the === operator when you're working with numbers that could mean null or 0 or return some form of false or null that isn't what you're looking for.

提交回复
热议问题