The begin
T1:='6';
Clientdataset1. Active:=false;
Clientdataset1.Com mandText:='select * from HUTAI_FEA where intostr (monthof (T))=' "+ t1 +" '"';
//clientdataset1.Com mandText:='select * from HUTAI_FEA where T<"' + t1 +" ';
MandText://clientdataset1.Com='select * from HUTAI_FEA where (select T from HUTAI_FEA)' + inttostr (monthof (DateTime (select T from HUTAI_FEA)));//datetimepicker1. Date
Clientdataset1. Active:=true;
end;
CodePudding user response:
The ORACLE: TO_CHARThe begin
T1:='6';
Clientdataset1. Active:=false;
Clientdataset1.Com mandText:='select * from HUTAI_FEA where TO_CHAR (T, 'FMMM') ='+ t1 +' ' ' ' ' ';
//clientdataset1.Com mandText:='select * from HUTAI_FEA where T<"' + t1 +" ';
MandText://clientdataset1.Com='select * from HUTAI_FEA where (select T from HUTAI_FEA)' + inttostr (monthof (DateTime (select T from HUTAI_FEA)));//datetimepicker1. Date
Clientdataset1. Active:=true;
end
CodePudding user response:
Inttostr is a function of Delphi, not SQLClientdataset1.Com mandText:='select * from HUTAI_FEA where the month (t)=' + t1;
CodePudding user response:
Well,,, when I was on the second floor with the statement, why display FMMM undefinedCodePudding user response: