Why does Oracle 9i treat an empty string as NULL?

后端 未结 10 1401
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-21 23:39

I know that it does consider \' \' as NULL, but that doesn\'t do much to tell me why this is the case. As I understand the SQL specifications

10条回答
  •  逝去的感伤
    2020-11-22 00:05

    Empty string is the same as NULL simply because its the "lesser evil" when compared to the situation when the two (empty string and null) are not the same.

    In languages where NULL and empty String are not the same, one has to always check both conditions.

提交回复
热议问题