数据库问题???sos???
dxlth 2002-10-30 02:15:40 var str:string;
begin
str:='select * from pjinfom where '''+Formatdatetime('yyyy-mm-dd',datetimepicker1.date)+''' < pjtime and pjtime< '''+Formatdatetime('yyyy-mm-dd',datetimepicker2.date)+ '''';
if Edit1.text <> '' then
str:=str+' and pjid = '''+ Edit1.text +'''';
if Edit2.text <> '' then
str:=str+' and name = '''+Edit2.text+'''';
if Edit3.text <> '' then
str:=str+' and dname = '''+Edit3.text+'''';
if edit4.text <> '' then
str:=str+' and job = '''+edit4.text+'''';
if edit5.Text <> '' then
str:=str+' and pjpace = '''+edit5.text+'''';
with dm.Query4 do
begin
Close;
SQL.Clear;
SQL.Add(str);
如果edit1.text要求输入的是数字不是字付怎么半