输入banner图图片脚本导航/分类

sql面试题

tableb b on a.id=b.pid;   左连接是以a表为基础,去匹配b表的数据,有则填充数据,没有填充null

  select a.*,b.* from tablea a right join tableb b on a.id=b.pid;  右连接是以b表为基础,去匹配a表的数据,有则填充数据,没有填充null

  select a.*,b.* from tablea a inner join tableb b on a.id=b.pid;  内连接是去两张表匹配两个id相等的数据

sql面试题

标签:style   填充   str   col   连接   nbsp   数据   区别   sel