预览模式: 普通 | 列表

12.18 高级SQL学习

继续前面的,我们有三个表sales,sales_rep,customer,下面我们使用查询语句:
====
mysql> select first_name,surname,value from customer,sales where id=customer;
+------------+-------------+-------+
| first_name | surname | value |
+------------+-------------+-------+
| Yvonne | Clegg | 2000 |
| Winston ...

查看全部...

标签: 内连接 左连接 自然连接 

分类:DB/mysql-24 | 固定链接 | 评论: 7 | 查看次数: 965