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; " 

  1. null absence of value. empty string value, empty. null special database.

  2. null has no bounds, can used string, integer, date, etc. fields in database.

  3. null isn't allocated memory, string null value pointer pointing in memory. however, empty allocated memory location, although value stored in memory "".


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -