摘要:
select a.* from a left join b on a.bId = b.bid 就是查询出a表的全部,b表中没数据的字段为空显示a left join b 等于 b right join a 阅读全文
摘要:
union 连接两个表查询的结果 假设我们有一个表Student,包括以下字段与数据: [c-sharp] view plaincopydroptablestudent;createtablestudent(idintprimarykey,namenvarchar2(50)notnull,scorenumbernotnull);insertintostudentvalues(1,'Aaron',78);insertintostudentvalues(2,'Bill',76);insertintostudentvalues(3,'Cindy',89 阅读全文