【发布时间】:2014-01-20 00:13:21
【问题描述】:
我正在尝试运行以下 sql 查询:
select customers.cust_first_name, customers.cust_last_name, customers.cust_gender,
customers.cust_city, countries.country_name, products.prod_id
from customers
join countries on customers.cust_id = countries.country_id
join products on profits.prod_id = products.prod_id
join profits on customers.cust_id = profits.cust_id
但我收到以下错误:
An error was encountered performing the requested operation:
ORA-00904: "PROFITS"."PROD_ID":Invalid identifier
00904.00000-"%s: invalid Identifier"
我使用的是 oracle 11g 版本。
您能否指导我如何动态解决/处理列歧义问题,即是否有办法让数据库忽略列歧义问题?
【问题讨论】: