附加条件-复杂查询技术-连接

时间:2021-04-25 22:11:33
【文件属性】:
文件名称:附加条件-复杂查询技术-连接
文件大小:671KB
文件格式:PPT
更新时间:2021-04-25 22:11:33
sql 附加条件 * Qualifying Ambiguous Column Names You need to qualify the names of the columns in the WHERE clause with the table name to avoid ambiguity. Without the table prefixes, the DEPARTMENT_ID column could be from either the DEPARTMENTS table or the EMPLOYEES table. It is necessary to add the table prefix to execute your query. If there are no common column names between the two tables, there is no need to qualify the columns. However, using the table prefix improves performance, because you tell the Oracle Server exactly where to find the columns. The requirement to qualify ambiguous column names is also applicable to columns that may be ambiguous in other clauses, such as the SELECT clause or the ORDER BY clause. Instructor Note Demo: 4_loc.sql Purpose: To illustrate a SELECT clause with no aliases.

网友评论