aiaiDBA

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

13718043309

010-86462881

PCC-02354: A file included with #include may not contain SQL statements

PCC-02354: A file included with #include may not contain SQL statements
Cause: The Pro*C Precompiler reads header files referenced in #INCLUDE directives and uses the values defined in them. But the precompiler never generates code using statements in header files, so use of SQL statements in these files is illegal.
Action: Move the SQL statement(s) into the main body of the application or use EXEC SQL INCLUDE to check that the included file is precompiled.

请先 登录 后评论

1 个回答

小智
PCC-02354:#include包含的文件可能不包含SQL语句,
.原因: Pro * C预编译器读取#INCLUDE指令中引用的头文件,并使用它们中定义的值。但是预编译器从来没有使用头文件中的语句生成代码,所以在这些文件中使用SQL语句是非法的。,
.操作:将SQL语句移动到应用程序的主体中,或使用EXEC SQL INCLUDE来检查包含的文件是否已预编译。,
.
请先 登录 后评论