SQLSERVER JOIN STATEMENT CONCLUETION
table: a field? : a1??????? a2??????? a3 ?a???????? ?b???????? ?c???????? table :b field : b1??????? b2??????? b3 ?a???????? ?b???????? ?c???????? 1,INNER JOIN Example: statement : select * from a inner join b on a.a1 = b.b1 results: a1????? a2??????? a3?????? b1?????? b2???????? b3 a???????? ?b???????? ?c???????? ?a???????? ?b???????? ?c???????? 2,LEFT JOIN = LEFT OUTER JOIN Example: statement : select * from a left join b on a.a1 = b.b1 results: a1????? a2??????? a3?????? b1?????? b2???????? b3 a???????? ?b???????? ?c???????? ?a???????? ?b???????? ?c???????? 3,RIHGT JOIN? = RIGHT OUTER JOIN Example: statement : select * from a right join b on a.a1 = b.b1 results: a1????? a2??????? a3?????? b1?????? b2???????? b3 a???????? ?b???????? ?c???????? ?a???????? ?b???????? ?c???????? 4,FULL JOIN? = FULL OUTER JOIN Example: statement : select * from a full? join b on a.a1 = b.b1 results: a1????? a2??????? a3?????? b1?????? b2???????? b3 a???????? ?b???????? ?c???????? ?a???????? ?b???????? ?c???????? d???????? ?d???????? ?d???????? ?NULL?NULL?NULLe???????? ?e???????? ?e???????? ?NULL?NULL?NULLNULL?NULL?NULL?f???????? ?f???????? ?f???????? NULL?NULL?NULL?g???????? ?g???????? ?g???????? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |