- 论坛徽章:
- 0
|
报错信息如下:
Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Feb 14 10:40:03 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /home/db/oracle/10g/oralce10g.2.0.1/precomp/admin/pcscfg.cfg
Syntax error at line 848, column 9, file loadmx.ec:
Error at line 848, column 9 in file loadmx.ec
(select count(*) from tap_tran_conf)
........1
PCC-S-02201, Encountered the symbol "count" when expecting one of the following:
( ) * + - / . @ | at, day, hour, minute, month, second, year,
The symbol "(" was substituted for "count" to continue.
这里对应到sql语句为:
EXEC SQL select
t1.branid,t3.menuid,(select count(*) from tap_tran_conf)
from tap_sys_ctrl t1, tap_menu t3;
从报错字面信息看是语法有问题,但是该sql语句在sqlplus及PL/SQL下可以执行。
测试了一下,在程序中只要涉及到使用类似复合查询都会报这个错误。
看了一下网上类似错误码的解决方式尝试修改参数PARSE=none,问题依旧。
|
|