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

后端 未结 10 1377
佛祖请我去吃肉
佛祖请我去吃肉 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:13

    Indeed, I have had nothing but difficulties in dealing with Oracle, including invalid datetime values (cannot be printed, converted or anything, just looked at with the DUMP() function) which are allowed to be inserted into the database, apparently through some buggy version of the client as a binary column! So much for protecting database integrity!

    Oracle handling of NULLs links:

    http://digitalbush.com/2007/10/27/oracle-9i-null-behavior/

    http://jeffkemponoracle.com/2006/02/empty-string-andor-null.html

提交回复
热议问题