亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4029 | 回復(fù): 2
打印 上一主題 下一主題

求助 proc編譯報 PCC-S-02201 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-10-17 20:41 |只看該作者 |倒序?yàn)g覽
報錯:

proc userid=DLADM/oracle@192.168.1.2:1521/zydb SQLCHECK=SEMANTICS include=/database/product/10.2.0/db_1/bin/proc RB06.pc

Pro*C/C++: Release 10.2.0.1.0 - Production on Mon Oct 17 19:44:23 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

System default option values taken from: /database/product/10.2.0/db_1/precomp/admin/pcscfg.cfg

Syntax error at line 74, column 36, file RB06.pc:
Error at line 74, column 36 in file RB06.pc
            FROM T_INVM_CUS IN_CUS LEFT JOIN Z_INCT_CRT0 INCT0 ON IN_CUS.INVM_ME
MB_CUST_AC=INCT0.INCT_ACCT_NO LEFT JOIN  TPC_COM_CURM  CURM
...................................1
PCC-S-02201, Encountered the symbol "LEFT" when expecting one of the following:

   ; , union, connect, group, having, intersect, minus, start,
   where, with,

Syntax error at line 74, column 91, file RB06.pc:
Error at line 74, column 91 in file RB06.pc
            FROM T_INVM_CUS IN_CUS LEFT JOIN Z_INCT_CRT0 INCT0 ON IN_CUS.INVM_ME
MB_CUST_AC=INCT0.INCT_ACCT_NO LEFT JOIN  TPC_COM_CURM  CURM
................................................................................
..........1
PCC-S-02201, Encountered the symbol "=" when expecting one of the following:

   : ) [ ] / . an identifier, a numeric constant,
The symbol "=" was ignored.

SQL語句
EXEC SQL INSERT INTO RB06_ACT_TMP(CUSNO ,SUM_AMT)
            SELECT  IN_CUS.CUID_CUST_NO ,SUM(NVL(INCT0.INCT_01_AMOUNT, 0) * NVL(CURM.RATVAL, 0))
            FROM T_INVM_CUS IN_CUS
                 LEFT JOIN Z_INCT_CRT0 INCT0
                 ON IN_CUS.INVM_MEMB_CUST_AC = INCT0.INCT_ACCT_NO
                 LEFT JOIN  TPC_COM_CURM  CURM
                 ON INCT0.INCT_TRN_DATE = CURM.DATA_DATE
                 AND INCT0.INCT_01_CURR = CURM.CURCDE
            WHERE  INCT0.INCT_01_CURR <> 'CNY'
              AND CURM.XRTCDE = 'USD'
              AND INCT0.INCT_TRN_CODE IN ('60', '1060')
              AND INCT0.INCT_CHANNEL = '0'
              AND INCT0.INCT_TRN_DATE = 2011-8-8
            GROUP BY IN_CUS.CUID_CUST_NO
            HAVING ABS(SUM(NVL(INCT0.INCT_01_AMOUNT, 0) * NVL(CURM.RATVAL, 0))) >= 5;


SQL語句在PL/SQL調(diào)試沒問題

baidu.google下,說是語法問題,說把左連接寫成(+)的形式,不是很懂
是不是在proc中不能用連接?

論壇徽章:
0
2 [報告]
發(fā)表于 2011-10-17 20:43 |只看該作者
其中proc版本

Pro*C/C++: Release 10.2.0.1.0 - Production on Mon Oct 17 20:41:46 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

System default option values taken from: /database/product/10.2.0/db_1/precomp/admin/pcscfg.cfg

論壇徽章:
0
3 [報告]
發(fā)表于 2011-10-18 08:58 |只看該作者
你寫的SQL不是ORACLE標(biāo)準(zhǔn)的SQL
理論上講ORACLE也是支持的,但建議不要用
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP