procedure Tinfocxform.cxbutClick(Sender: TObject);
var
strSql :string;
begin
datamodule1.kccx.Active:=false;
strSql:='select * from yjsj where no=:jsjno';
datamodule1.kccx.SQL.Clear;
datamodule1.kccx.SQL.Add(strsql);
datamodule1.kccx.Parambyname('jsjno').AsString:=trim(xlhedit.Text);
datamodule1.kccx.Active :=true;
end;
没有错误提示,但是得不到预期的结果(满足WHERE条件的结果),查询时一条记录也不显示
var
strSql :string;
begin
datamodule1.kccx.Active:=false;
strSql:='select * from yjsj where no=:jsjno';
datamodule1.kccx.SQL.Clear;
datamodule1.kccx.SQL.Add(strsql);
datamodule1.kccx.Parambyname('jsjno').AsString:=trim(xlhedit.Text);
datamodule1.kccx.Active :=true;
end;
没有错误提示,但是得不到预期的结果(满足WHERE条件的结果),查询时一条记录也不显示
解决方案 »
- 关于图片拖动操作
- 安装程序运行时客户端出现没有注册的错误?
- 怎么操作webservice中自定义函数返回的自定义结构?
- 晕,我用OpenDialog打开的文件名到ListBox中有乱码,请帮帮小弟
- 烦!我用流的方式把WORD文件插入到数据库中的IMAGE类型字段,如何把把该字段的内容读出来,我用SAVETOFILE生成一个指定的WORD文件,但打
- 如何拦截在IE中复制文字的操作,高手请进
- 多层开发中的问题
- 这几天都很郁闷 散散分吧 连同结不掉的帖子一起散掉 一共300 请斑竹手下留情 -_-#
- 如何用Delphi 写程序,给Windows添加计划任务,比如说定时做数据备份,在98、NT、2K下各怎么样来实现?
- 我是用ADO连接数据库,那么我怎么对数据库进行操作呢?比如查找、删除、更新、插入。最好能不能给些源代码。。。。。。。。。。。。
- INTERBASE的文件问题
- 大家来帮忙!!!!!
2、这样试试!
datamodule1.kccx.Close;
strSql:='select * from yjsj where no=:jsjno';
datamodule1.kccx.SQL.Clear;
datamodule1.kccx.SQL.Add(strsql);
datamodule1.kccx.Parambyname('jsjno').AsString:=trim(xlhedit.Text);
datamodule1.kccxOpenb
var
strSql :string;
begin
datamodule1.kccx.Active:=false;
strSql:='select * from yjsj where no= '''+trim(xlhedit.Text)+'''';
datamodule1.kccx.SQL.Clear;
datamodule1.kccx.SQL.Add(strsql);
datamodule1.kccx.Active :=true;
end;ORprocedure Tinfocxform.cxbutClick(Sender: TObject);
var
strSql :string;
begin
datamodule1.kccx.Active:=false;
strSql:='select * from yjsj where no=:jsjno';
datamodule1.kccx.SQL.Clear;
datamodule1.kccx.SQL.Add(strsql);
datamodule1.kccx.Parambyname('jsjno').AsString:=''''+trim(xlhedit.Text)+'''';
datamodule1.kccx.Active :=true;
end;