转载地址:https://blog.csdn.net/lppl010_/article/details/79429657

 

mysql中using的用法为:

using()用于两张表的join查询,要求using()指定的列在两个表中均存在,并使用之用于join的条件。

示例:

复制代码代码如下:

  select a.*, b.* from a left join b using(colA);

 

  等同于:

复制代码代码如下:

  select a.*, b.* from a left join b on a.colA = b.colA;

  

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-11-13
  • 2021-12-03
  • 2021-08-14
  • 2022-02-19
猜你喜欢
  • 2021-06-22
  • 2022-12-23
  • 2021-12-31
  • 2021-09-25
  • 2021-11-10
  • 2021-09-01
相关资源
相似解决方案