the soucecode is:
var
strDate:string;
begin
strDate:='1994-09-14';
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Text:='Select * from sales where sele_Date='+strDate+'';
ADOQuery1.Open;But This SouceCode cannot select any records(My database have some records which can beselected).someone knew this question?
In Borland C++Builder I use these SouceCode but no an problem//Bcb
String strString;
strDate="1994-09-14";
ADOQuery1->Close;
ADOQuery1->SQL->Clear;
ADOQuery1->SQL->Text:="Select * from sales where sele_Date='"+ strDate
+ "'";
ADOQuery1->Open;
var
strDate:string;
begin
strDate:='1994-09-14';
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Text:='Select * from sales where sele_Date='+strDate+'';
ADOQuery1.Open;But This SouceCode cannot select any records(My database have some records which can beselected).someone knew this question?
In Borland C++Builder I use these SouceCode but no an problem//Bcb
String strString;
strDate="1994-09-14";
ADOQuery1->Close;
ADOQuery1->SQL->Clear;
ADOQuery1->SQL->Text:="Select * from sales where sele_Date='"+ strDate
+ "'";
ADOQuery1->Open;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货