1、join连接,语法为:select … from tables join tableb。分为内连接、外连接、和左右连接四种。
2、直接关联,语法为:select … from tables tableb。实现效果等同于内连接。
3、子查询,语法为:select … from tables where (select … from tableb) as b。实现效果也等同于内连接。
时间:2021-04-26 02:54:29
1、join连接,语法为:select … from tables join tableb。分为内连接、外连接、和左右连接四种。
2、直接关联,语法为:select … from tables tableb。实现效果等同于内连接。
3、子查询,语法为:select … from tables where (select … from tableb) as b。实现效果也等同于内连接。