What is the actual value of NULL stored in the database by MySQL?
The database has to have some way to identify that the field value is NULL, so what value it uses to represent a NULL?
If I want to store non-english language in DB as bit values that my application can understand, I need to know if I have some constraints on if there are some ASCII values I have to avoid.
Moreover I thought it would not hurt to know.
Null does mean an unknown value. If you try to operate something like: 1 + (unknown), the result is surelly unkown. Likewise true && NULL is also NULL. Don't misundertood it with 0(zero) neither with false because these values values are different.
If happen something bad in you life, don't ask God why it happened. Ask for what.
SCJP 5 (80%) - SCWCD 5 (91%) - SCBCD & SCJD coming soon...
This is a database questions, not an ORM question.
Each database may implement this in any way they choose, so long as they follow the appropriate SQL specification.
However, it will be via some attribute of the column value, not through the value itself. If a column value is null, it has no value. If you supply a value (any value) for a column, it is no longer null. Don't think of null as a value, think of it more like a state.
Hope this helps,
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth