showmessage(M1); showmessage(M9); //str:='select m9 from zutzgl where TzglID='''+trim('1')+''''; //showmessage(str); if Query9.Active then Query9.Active:=false; Query9.sql.clear; with ADOQuery3_Tmp.Parameters.AddParameter do begin Name := 'simon'; DataType := ftString; Direction := pdInput; Value := M9; end; str:='select :simon from zutzgl where TzglID='''+trim('1')+''''; Query9.sql.SetText(pchar(str)); query9.active:=true;
呵呵 str:='select ‘ + m9 + ’from zutzgl where TzglID='''+trim('1')+'''';
Query9.sql.SetText(pchar(str));
这句已经加上去了
showmessage(M9);
//str:='select m9 from zutzgl where TzglID='''+trim('1')+'''';
//showmessage(str);
if Query9.Active then
Query9.Active:=false;
Query9.sql.clear; with ADOQuery3_Tmp.Parameters.AddParameter do
begin
Name := 'simon';
DataType := ftString;
Direction := pdInput;
Value := M9;
end;
str:='select :simon from zutzgl where TzglID='''+trim('1')+''''; Query9.sql.SetText(pchar(str));
query9.active:=true;
str:='select ‘ + m9 + ’from zutzgl where TzglID='''+trim('1')+'''';