query1.sql.add('select * from dwdm where '''+edit1.text+'''='''+getPYStr(dw)+''')
解决方案 »
- createOleObject('Excel.Application');运行报错
- 如何复制一条记录中的各个字段到相应的EDIT控件中?
- 利用打印控件PrintDbgridEh如何实现这种套打?50分
- 动态创建的EXCEL对象如何设置单元格的格式?
- 怎么让identity初始值恢复为1
- delphi2009+dbexpress 发布软件的问题
- 初学DELPHI
- 新手的几个粗浅问题。。。
- delphi程序如何打包?
- 应该是nimada惹的祸,100分求解
- 在delphi下删除sql_server2000中的表的记录,有时会出现不能删除的情况...?
- 求助:Borland的TeamSource的CDKEY是什么?????
var
strSQL:='SELECT * FROM dwdm where getPYStr(dw)=:AValue';
with Query1 do
begin
Close;
SQL.Text:=strSQL;
Parameters.ParamByName('AValue').AsString=Edit1.Text;
Prepared;
Open;
end;
[Error] Unit3.pas(169): Undeclared identifier: 'Parameters'
[Error] Unit3.pas(169): Missing operator or semicolon
[Error] Unit3.pas(170): Statement expected, but expression of type 'Boolean' found
不知道应该处理,请指教!!!
var
strSQL:='SELECT * FROM dwdm where getPYStr(dw) like :AValue';
begin
query1.Close;
query1.SQL.Text:=strSQL;
query1.ParamByName('AValue').AsString=Edit1.Text;
query1.open;
end;
end;
可以吗??
SQL 语句中不能使用 数据库不支持的 函数 如:getPYStr