多谢了,急!!!

flybirdy 2003-05-12 07:59:39
我执行了以下代码:
query1.SQL.Clear;
query1.SQL.Add('delete from animals where name=''Angel Fish''');
query1.Active:=true;
结果出错说:“project project1.exe raised exception class ENoResultSet with
message 'error creating cursor handle',process stopped."
...全文
43 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
飞天林 2003-05-12
  • 打赏
  • 举报
回复
执行delete ,update,等没有结果集的操作用ExecSql
weishili 2003-05-12
  • 打赏
  • 举报
回复
query1.SQL.Clear;
query1.SQL.Add('delete from animals where name='Angel Fish'');
query1.ExecSQL;

1,594

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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