adoquery1.SQL.Text:='select sum(bianhao) from cangku where bianhao='''+ComboBox1.Text+'''';
这一句查询得出的总和值怎么读出来?
这一句查询得出的总和值怎么读出来?
解决方案 »
- 问几个比较变态的DELPHI的问题,期待高手献身解答 :D 关于 WebBrowser
- 简单问题:Delphi中,自己定义interface时,怎样产生与GUID
- 〓〓请问怎么屏蔽TWindowsMediaPlayer在播放时的右键菜单,使用自已的右键菜单?〓〓
- 求SQL语句,如何查询距离给定日期最近的一组记录?
- 穷疯了,便宜出卖公司网站空间!
- delphi-bde-sql2000,怎么发布?哪有intallshield for delphi?我的盘里没有,我下的intallshield没有for delphi的选项,完美解决者再开贴
- Delphi+win2000+Sqlserver2000开发想发布到客户:win98+msde可以吗?急急急....
- 寻求用DELPHI写的cd抓轨的源程序
- delphi with excel
- 哪里有csdn离线浏览器源码?
- delphi的TXMLDocument是垃圾!!
- 关于怎样做类似MSN的经验
aint:integer;
begin
with adoquery1 do
begin
sql.clear;
SQL.Text:='select sum(bianhao) from cangku where bianhao='''+ComboBox1.Text+'''';
if not active then open;
aint:=Fields[0].asinteger;
end;
adoquery1.Close ;
adoquery1.SQL.Clear ;
adoquery1.SQL.Add('select sum(bianhao) from cangku where bianhao='''+ComboBox1.Text+''''');
adoquery1.Active :=true;edit1.Text :=inttostr(adoquery1.Fields[0].asinteger);