--學生表create table Studend(? ? ? ?id number(2,0) primary key,? ? ? ?sname nvarchar2(20) not null,? ? ? ?sage number(2,0) not null);--成績表create table SC(? ? ? ?stu_id number(2,0) references Studend(id),? ? ? ?cou_id number(2,0) references Course(cid),? ? ? ?score number(2,0));?--左外連接查詢語句 ? ? ?select a.*,b.* from Studend a?? ? ? ?left join SC b on a.id=b.stu_id;不符合條件查詢的列直接是什么都沒有,為什么不是null?
left join不符合條件的列為何不顯示null?
wj魚尾3376905
2017-09-18 14:52:21