0

为什么这个查询无效?当我只写 SRV_ID 而不是 vt_exam_details.SRV_ID 一切正常

 cl_id
, cl_name_last as CUSTOMER
, vt_animals.an_type
, vt_exam_details.SRV_ID
, vt_services.srv_desc
, vt_exam_details.ex_fee
from vt_clients
join vt_animals using (cl_id)
join vt_exam_headers using (an_id)
join vt_exam_details using (ex_id)
join vt_services using (srv_id)

错误:

Error at Command Line:5 Column:3
Error report:
SQL Error: ORA-00904: "VT_EXAM_DETAILS"."SRV_ID": invalid identifier
00904. 00000 -  "%s: invalid identifier"
*Cause:    
*Action:

谢谢。

4

2 回答 2

1

因为表vt_exam_details不在FROM子句中?

于 2013-02-17T06:51:51.250 回答
0

表 VT_EXAM_DETAILS 中是否有 SRV_ID?

于 2013-02-17T06:52:41.913 回答