delphi+firebird中clientdataset(select count(*))奇怪问题,求解答。

summerlove 2013-06-14 04:27:01
表:myTable
字段:FKEY:integer,FNAME:string
服务器端DataSetProvide的poAllowCommandText已设为True。
客户端:
ClientDataSet.commandtext:='select * from myTable'; 执行正常,并返回数据

ClientDataSet.commandtext:='select count(*) from myTable'; 程序异常
ClientDataSet.commandtext:='select count(*) as ret_count from myTable'; 程序异常
在试
ClientDataSet.commandtext:='select FNAME from myTable'; 程序异常

这是怎么回事呢?
我在FireBird控制器里直接执行select count(*) from myTable没有错误。
...全文
80 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,497

社区成员

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

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