使用如下的SQL语句将完成哪一种类型的连接 SELECT i.id_number, m.manufacturer_id FROM inventory i, inventory m WHERE i.manufacturerl_id=m.region_id_number;
A: 自连接(SelfJoin)
B: 外连接(Outer Join)
C: 相等连接(Equi Join)
D: 不相等连接(Non-equijoin)
A: 自连接(SelfJoin)
B: 外连接(Outer Join)
C: 相等连接(Equi Join)
D: 不相等连接(Non-equijoin)
举一反三
- 使用以下SQL语句,将实现哪种连接?() SELECT<br/>i.id_number, m.manufacturer_id FROM<br/>inventory i,inventory m WHERE<br/>i.manufacturer_id = m.region__number; A: 自连接 B: 外连接 C: 相等连接 D: 不相等连接
- 如果将表A的id列和表B的id列进行连接查询,下列语句正确的是 A: from A,B on A.id=B.id B: from A join B on A.id=B.id C: from A join B where A.id=B.id D: from A.id join on B.id
- 自连接SQL语句关键词为() A: JOIN…ON… B: UNION C: JOIN…WHERE… D: INNER JOIN…WHERE…
- 下面用于查询student表中id值在1,2,3范围内的记录的SQL语句是( )。 A: SELECT * FROM student WHERE id=1,2,3; B: SELECT * FROM student WHERE (id=1,id=2,id=3); C: SELECT * FROM student WHERE id in (1,2,3); D: SELECT * FROM student WHERE id in 1,2,3;
- 下面选项中,查询student表中id值不在2和5之间的SQL语句是( )。 A: SELECT * FROM `student` WHERE `id`!=2,3,4,5 B: SELECT * FROM `student` WHERE `id` NOT BETWEEN 5 AND 2 C: SELECT * FROM `student` WHERE `id` NOT BETWEEN 2 AND 5 D: SELECT * FROM `student` WHERE `id` NOT IN 2,3,4,5