以下ESQL / C代码完全遵循Sybase手册中有关用法的说明:
...
strcpy(anweisung, "UPDATE image_test SET katkey = ? WHERE CURRENT OF hc_image_test");
EXEC SQL PREPARE updt FROM :anweisung ;
EXEC SQL EXECUTE updt USING :key;
EXEC SQL DROP STATEMENT updt;
EXEC SQL CLOSE hc_image_test;
EXEC SQL COMMIT TRANSACTION;
...
该行的UPDATE正常进行,但是DROP STATEMENT(用于释放资源)给出:
** SQLCODE=(-102)
** ASE Error
** Incorrect syntax near 'STATEMENT'.
我不知道这可能是什么问题。