TQuery中旱见的错误 找人事管理简易软件
select ReceiptID,sum(PayAmount) as total
into #t1
from Payment
where BuyDate=''20051101''
group by ReceiptID
select count(*)
from #t1
where total>=1998
drop table #t1
运行时错误提示:
[sybase][odbc sybase drive]
Error using translation dll [micrsoft][ODBC代码页转换器]找不到转换表
脚本是个多语句组合,大家帮帮忙啊
2楼: 源码拿出来看看 如人事管理简易软件
3楼: 有谁能告诉我它用到哪些文件就好了,我在服务器上运行是可以的
4楼: 应该是数据库连接驱动的问题吧!
5楼: 將BDE設置好就可以了吧
6楼: 帮顶!
╭=========================================╮
80G海量源代码,控件,书籍全免费狂下不停!
http://www.source520.com
╰=========================================╯
财务软件版7楼: 1、你的语句太罗嗦,一句话搞定
select count(*)
from (select ReceiptID,sum(PayAmount) as total
from Payment
where BuyDate=''20051101''
group by ReceiptID
)t
where total>=1998
2、不要在query中使用多语句,你可以将这些语句建立一个存储过程,然后query调用存储过程。
8楼: 在SQL语句顶端加上--
改成
--
select ReceiptID,sum(PayAmount) as total
into #t1
from Payment
where BuyDate=''20051101''
group by ReceiptID
select count(*)
from #t1
where total>=1998
drop table #t1
9楼: 谢谢各位热心帮助,我在dbe上建立了两个不同类型数据驱动别名分别为Sybase odbc ,Sybase ase 结果前者出出,后者成功,很明显是数据驱动类型问题,loskiller的方法记得有一位高手也这样回答过,具体根据我也不懂,但是不行,总之谢谢各位
10楼: 帮顶!
╭=========================================╮
80G海量源代码,控件,书籍全免费狂下不停!
http://www.source520.com
╰=========================================╯