aiaiDBA

加微信获取免费职业规划+学习资料,了解年薪50万的DBA是如何练成的

13718043309

010-86462881

PCC-02362: Host variable not declared within SQL DECLARE section

PCC-02362: Host variable not declared within SQL DECLARE section
Cause: When MODE=ANSI is specified at precompile time, all host variables must be declared inside Declare Sections. Remember that MODE=ANSI refers to ANSI SQL, not ANSI C.
Action: Add the EXEC SQL BEGIN DECLARE SECTION... EXEC SQL END DECLARE SECTION statements around all host variable declarations.

请先 登录 后评论

1 个回答

小智
PCC-02362:不在SQL DECLARE部分声明的主机变量,
.原因:在预编译时指定MODE = ANSI时,所有主机变量必须在声明部分内部声明。请记住,MODE = ANSI是指ANSI SQL,而不是ANSI C.,
.操作:在所有主机变量声明周围添加EXEC SQL BEGIN DECLARE SECTION ... EXEC SQL END DECLARE SECTION语句。,
.
请先 登录 后评论