飞 飞龙在天 Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-04 #2 用SQL Server提供的getdate()函数,看以下程序: with Query1 do begin SQL.Clear; SQL.Add('select getdate()'); Open; Result := FormatDateTime('YY-MM-DD', Fields[0].AsDateTime); Close; end;
用SQL Server提供的getdate()函数,看以下程序: with Query1 do begin SQL.Clear; SQL.Add('select getdate()'); Open; Result := FormatDateTime('YY-MM-DD', Fields[0].AsDateTime); Close; end;
W wind_cloudy Unregistered / Unconfirmed GUEST, unregistred user! 2001-07-04 #3 select replace(convert(char,getdate(),2),'.','-')