我在另外的sqladvantage中执行完全正确的sql语句,在delphi的query的sql中添加进去后,就提示capability not supported 的错误,很郁闷,不知道具体什么原因,望高手指点迷津
贴sql如下:
/*查询出协议单位的总的已结,未结消费情况*/
select a.ac_accno,b.gn_name,sum(a.ac_money) as sumMoney ,
(
select sum(c.ac_money) from account c
where c.ac_accno=a.ac_accno and c.ac_trans<'a'
) as AllMoneyfrom account a,genaccno b
where a.ac_accno=b.gn_accno and a.ac_flag='N' and b.gn_accno in
(
select cp_accno from corp
where cp_accno is not null
)
group by a.ac_accno,b.gn_name
order by sumMoney desc在单独的sql查询窗口里面没有问题的,在delphi中执行就出现这个以前没有遇到过的东东,数据库是sybase
贴sql如下:
/*查询出协议单位的总的已结,未结消费情况*/
select a.ac_accno,b.gn_name,sum(a.ac_money) as sumMoney ,
(
select sum(c.ac_money) from account c
where c.ac_accno=a.ac_accno and c.ac_trans<'a'
) as AllMoneyfrom account a,genaccno b
where a.ac_accno=b.gn_accno and a.ac_flag='N' and b.gn_accno in
(
select cp_accno from corp
where cp_accno is not null
)
group by a.ac_accno,b.gn_name
order by sumMoney desc在单独的sql查询窗口里面没有问题的,在delphi中执行就出现这个以前没有遇到过的东东,数据库是sybase
解决方案 »
- listview中可不可以实现被鼠标点击过的行,字体变为粗黑.
- 100求救:用MediaPlayer9播放器播放WMV格式的文件,如何选择音轨?
- 哪位大虾能提供修改过的AgentObjects_TLB.pas文件,资料说DELPHI7生成的是错的!!!!
- 控件问题
- 什么控件可以自动识别html,类似RichEdit和Memo?
- 单位没了 被别人兼并了 前途不明 特不舒服 请教各位 散分
- 怎样用select调用多个表中的数据???
- 如何获得程序名称(不要扩展名的)?
- 万分感谢!请问谁有DELPHI下的OUTLOOK式窗体控件?如有请发:[email protected]
- 谁有WINDOWS API FOR DELPHI的中文手册要有例程!!!!!!!
- 求助?
- 多线程问题
Check(DbiPackTable(Table1.DbHandle,Table1.Handle,Nil,szDBASE,TRUE));对了是D7的~~
这只是用了一个in而已
看来要用exist试试了
同时多谢几位老兄