sql - Difference between NULL and Blank Value in Mysql -
i have check value of particular column named result
blank or not.
when check if result null
, query failed, when checked result=''
, worked.
what difference between two.
please explain.
"update rls_tp_2012_03 a, rls_tp_2012_03 b set a.comment=b.comment b.tcode='t1199' , a.groupname='xyz' , a.hlabno=b.hlabno , a.result =''; "; "update rls_tp_2012_03 a, rls_tp_2012_03 b set a.comment=b.comment b.tcode='t1199' , a.groupname='xyz' , a.hlabno=b.hlabno , a.result null; "
null
absence of value. empty string value, empty.null
special database.null
has no bounds, can usedstring
,integer
,date
, etc. fields in database.null
isn't allocated memory,string
null
value pointer pointing in memory. however, empty allocated memory location, although value stored in memory""
.
Comments
Post a Comment