Как получить текущую дату?
Falk0ner, вс, 06/07/2008 - 15:34.
// make the SQL dependent on type of DBMS
if AppLibrary.Database.DriverName = 'ORACLE' then
SQL.Add('and entry_date < SYSDATE')
else
SQL.Add('and entry_date < "TODAY"');
end;
if AppLibrary.Database.DriverName = 'ORACLE' then
SQL.Add('and entry_date < SYSDATE')
else
SQL.Add('and entry_date < "TODAY"');
end;
Взято с Delphi Knowledge Base: http://www.baltsoft.com/
Отправить комментарий