侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

mysql操作--连接查询

2024-05-10 星期五 / 0 评论 / 0 点赞 / 76 阅读 / 642 字

1.innerjoin(内连接,或等值连接)select * from table1 inner join table2 on table1.column1= table2.column2;2.lef

1.innerjoin(内连接,或等值连接)

select * from table1 inner join table2 on table1.column1= table2.column2;

2.left join(左连接)

select * from table1left join table2 on table1.column1= table2.column2;

3.right join(右连接)

select * from table1 right join table2 on table1.column1= table2.column2;

4.select并集

select * from table1left join table2 on table1.column1= table2.column2 union select * from table1 right join table2 on table1.column1= table2.column2;

广告 广告

评论区