121. Which two statements are true regarding the USING clause in table joins? (Choose two .)
A. It can be used to join a maximum of three tables.
B. It can be used to restrict the number of columns used in a NATURAL join.
C. It can be used to access data from tables through equijoins as well as nonequijoins.
D. It can be used to join tables that have columns with the same name and compatible data types.
Answer: BD
答案解析:
参考:http://blog.csdn.net/rlhua/article/details/12877591
A,最多可以连接三个表,错误,可以连接三个以上的表
B,限制自然连接的等值连接数,正确,因为当有多个列相匹配时,使用USING子句可仅与一列相匹配,NATURAL JOIN和USING语句是互相排斥的。
C,错误,USING只能用在等值连接,不能用在非等值连接。
D,列的名称相同和数据类型匹配,则可以连接表,正确。
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow
本文详细解析了SQL中USING子句在表连接中的应用,澄清了常见误解,如USING子句不仅限于三个表的连接,而且专门用于处理列名相同且数据类型兼容的情况。同时,文章指出了USING子句在等值连接中的作用,以及其与NATURAL JOIN的区别。
3086

被折叠的 条评论
为什么被折叠?



