N1 N2 N3 N4 -- ---------- ---------- ---------- A 456 34 55 B 135 345 643 B 456 34 55 A 123 235 B 332 534 C 135 643 A 789 342 B 365 774
8 rows selected.
SQL> select * from c where c.n1='A';
no rows selected
c ÊÇÎÒ½¨µÄÒ»¸öÓÃa£¬b Á½¸ö±íÁ¬½ÓµÄview ÇëÎÊΪʲôûÓзµ»ØÐÐÄØ£¿ ½¨ÊÓͼ µÄÓï¾äÌù³öÀ´ create view c as select nvl(a.n1,b.n1) as n1,nvl(a.n2,b.n2) as n2,n3,n4 from a full join b on a.n1=b.n1 and a.n2=b.n2; ˳±ãÎÊÒ»¾ä ÆäÖпյÄλÖà ÊÇ´æµÄnullÂð »¹ÊǸù±¾ÄǸöλ
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......