prepare执行BUG吗?

fusongbai 2012-03-31 09:47:10
sprintf(str_cmd,"%s%s","select * from ",buffer,":systables into temp aa");
$prepare aa from $str_cmd
$execute aa


-410 Prepare statement failed or was not executed.

This EXECUTE statement refers to a statement id that has not been
prepared. Either no PREPARE statement was done, or one was done but
returned an error code. Review the program logic to ensure that a
statement is prepared and the PREPARE return code is checked. A
negative error code from PREPARE usually reflects an error in the
statement being prepared.



请问何解?

398407063 俺在写一个,生成纯SQL的小工具。以免不同数据库造成语法不一样!




另请
...全文
96 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
fusongbai 2012-04-10
  • 打赏
  • 举报
回复
都没有人用吗?
fusongbai 2012-04-04
  • 打赏
  • 举报
回复
没有人遇到过吗

1,195

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 Informix
社区管理员
  • Informix社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧