Difference between NULL and Blank Value in Mysql

前端 未结 4 1567
轮回少年
轮回少年 2020-12-17 00:16

I have to check for a value of a particular Column named RESULT is blank or not.

When I check with if RESULT IS NULL, the query failed, bu

4条回答
  •  自闭症患者
    2020-12-17 00:47

    In tri-value logic, NULL should be used to represent "unknown" or "not applicable" An empty column should represent "known but empty".

    Some DBMS products don't follow this convention all the time but I consider them deficient. Yes, you know who you are, Oracle :-)

    In addition, while NULL can be put into any column type (ignoring not null clauses for now), you cannot put an "empty" value into a non-character field (like integer).

提交回复
热议问题