赞
踩
- select participators.name, department.name
- from participators,
- department
- where participators.dept_id = department.id
- order by participators.id;
- select p.name, d.name
- from participators p, # 起别名
- department d
- where p.dept_id = d.id
- order by p.id;
-
- select p.name, d.name
- from participators p
- inner join department d on p.dept_id = d.id
- order by p.id;
- select p.name, d.name
- from participators p
- join department d on p.dept_id = d.id
- order by p.id;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。