Can a string with the word NULL in it ever be interpreted as a NULL value?

て烟熏妆下的殇ゞ 提交于 2021-02-19 03:44:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!