问题
Looking for explanations for an error in a db insert, or update, I was told the problem is a customer name like:"BOB NULL-Creations".
What I have read about NULL doesn't allow me to accept that explanation so easily.
However I have been wrong about other things before.
Is it ever possible for the string 'NULL' to ever be interpreted as a NULL value in a situation where it is part of a string?
A little more information The data is being ultimately viewed on an iPad so I am told the NULL breaks on the iPad deserilization
I would like to better understand that if someone has a link related this possibility.
回答1:
No, the string 'NULL'
or "NULL"
can never be mistaken for NULL. All programming languages will read 'NULL'
or "NULL"
as a series of characters.
来源:https://stackoverflow.com/questions/15213328/can-a-string-with-the-word-null-in-it-ever-be-interpreted-as-a-null-value