数据库用的是SQL SERVER,模拟一个仓库管理系统,要输出库存和需要量的差,并输出缺货单,这样的SQL语句应怎么写?delphi如何实现??
解决方案 »
- 请教d2010启动报错"displayNotification: 内存不够"的原因
- Fastreport 控件打印格式设置求救
- 关于delphi 导入excel的问题,excel的合并单元格如何导入?
- [100分急求]RichEdit字体格式问题
- 如何调用flashGet进行下载?
- DrawGrid肯干stringgrid有什么不同?
- CSDN论坛秀-Delphi版作秀董事会郑重声明
- treeview的用法问题??
- Interbase数据如何把它转换为ACCESS数据或SQL SERVER数据库!看一下我的一个方法!
- 关于数据模块datamodule的问题
- 关于密码框的问题?
- 如何发布基于SQL SERVER 2000的程序?
_younum:integer;
begin
_yournum := StrToIntDef(Edit1.Text,0);
with adoquery1 do
begin
close;
SQL.text := 'select kcsl,kcsl-'+IntToStr(_yournum)+' as diffnum from kctable where kcsl<' +IntToStr(_yournum);
Open;
.....
end;
end;
_younum:integer;
begin
_yournum := StrToIntDef(Edit1.Text,0);
with adoquery1 do
begin
close;
SQL.text := 'select kcsl,kcsl-'+IntToStr(_yournum)+' as diffnum from kctable where kcsl<' +IntToStr(_yournum)+'';
Open;
.....
end;
end;