我被PRO*C弄得焦头烂额,马上给分
int getlotstatus(char *theLotId)
{
char alotstatus[2];
EXEC SQL
SELECT lotstate
INTO
:alotstatus
FROM LOT
WHERE LOTID=:theLotId;
return 0;
}
以上是MY.PC文件
我在命令行执行:
proc iname=my.pc
结果:
Pro*C/C++: Release 8.1.7.0.0 - Production on 星期二 9月 30 09:17:18 2003
(c) Copyright 2000 Oracle Corporation. All rights reserved.
系统默认选项值取自于: C:\Oracle\Ora81\precomp\admin\pcscfg.cfg
在第 8 行,第 13 列,文件 D:\00_CCode\PRO_C\st_3.pc 有语义错误:
:alotstatus
............1
PCC-S-02322, 找到未定义的标识符
在第 10 行,第 22 列,文件 D:\00_CCode\PRO_C\st_3.pc 有语义错误:
WHERE LOTID=:theLotId;
.....................1
PCC-S-02322, 找到未定义的标识符
C:\>