oracleÖм´ÊÇ¿ÕÔõôÌåÏÖ
oracle ÖпÕÖµÌåÏÖÓÐÁ½ÖÖ·½·¨£ºnull ÌåÏÖȱʧ»òδ֪µÄÐÅÏ¢£¬ÓëÈκÎÖµ¶¼²»ÏàµÈ¡£¿Õ×Ö·û´®£¨”£©ÌåÏÖûÓÐÈκÎ×Ö·ûµÄÎı¾Öµ£¬Óë null ²»ÏàµÈ£¬¿ÉÓëÆäËû×Ö·û´®½ÏÁ¿¡£
Oracle ÖпÕÖµµÄÌåÏÖ
Oracle ÖÐÓÐÁ½ÖÖ¿ÕÖµµÄÌåÏÖ·½·¨£ºNULL ºÍ¿Õ×Ö·û´®£¨”£©¡£
NULL
NULL ÊÇÒ»¸öÌØÊâÖµ£¬ÌåÏÖȱʧ»òδ֪µÄÐÅÏ¢¡£
ËüÓëÈκÎÆäËûÖµ¶¼²»¿ÉÏàµÈ£¨°üÀ¨Ëü×Ô¼º£©¡£
ÔÚ SQL Óï¾äÖУ¬NULL ͨ³£ÓÃ×÷ռλ·û£¬ÌåÏÖ²»±£´æÊý¾Ý¡£
ÀýÈ磺
SELECT * FROM table_name WHERE column_name IS NULL;
µÇ¼ºó¸´ÖÆ
¿Õ×Ö·û´®
¿Õ×Ö·û´®£¨”£©ÌåÏÖÒ»¸öÎı¾Öµ£¬ÆäÖÐûÓÐÈκÎ×Ö·û¡£
ËüʵÖÊÉÏÊÇÒ»¸ö³¤¶ÈΪ 0 µÄ×Ö·û´®¡£
¿Õ×Ö·û´®Óë NULL ²»ÏàµÈ£¬¿ÉÒÔÓëÆäËû×Ö·û´®¾ÙÐнÏÁ¿¡£
ÀýÈ磺
SELECT * FROM table_name WHERE column_name = '';
µÇ¼ºó¸´ÖÆ
Çø·Ö NULL ºÍ¿Õ×Ö·û´®
Çø·Ö NULL ºÍ¿Õ×Ö·û´®ºÜÊÇÖ÷Òª£¬ÓÉÓÚËüÃÇÔÚ SQL Óï¾äÖеÄ×÷Óòî±ð£º
NULL ÓÃÓÚÌåÏÖȱʧ»òδ֪µÄÐÅÏ¢¡£
¿Õ×Ö·û´®ÓÃÓÚÌåÏÖûÓÐ×Ö·ûµÄÖµ¡£
Çë¼Ç×Å£¬NULL ÓëËùÓÐÆäËûÖµ¶¼²»ÏàµÈ£¨°üÀ¨Ëü×Ô¼º£©£¬¶ø¿Õ×Ö·û´®¿ÉÒÔÓëÆäËû×Ö·û´®¾ÙÐнÏÁ¿¡£
ÒÔÉϾÍÊÇoracleÖм´ÊÇ¿ÕÔõôÌåÏÖµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡