sql中用JOIN USING 简化JOIN ON
时间:2021-07-01 10:21:17
帮助过:2人阅读
- [sql]
- SELECT f.color, c.is_primary, c.is_dark, c.is_rainbow
- FROM flags f www.2cto.com
- INNER JOIN color c ON f.color = c.color
- WHERE f.country = ‘China‘;
等价于
[sql] view plain
copy
- [sql]
- SELECT f.color, c.is_primary, c.is_dark, c.is_rainbow
- FROM flags f
- INNER JOIN color c USING(color)
- WHERE f.country = ‘China‘;
sql中用JOIN USING 简化JOIN ON
标签: