Today's date on database serverThis is another case where ORACLE and InterBase SQL dialects are different.
In ORACLE, it is SYSDATE,
in InterBase, it is TODAY.
 | |  | |
if AppLibrary.Database.DriverName = 'ORACLE' then
SQL.Add ('and entry_date < SYSDATE')
else
SQL.Add ('and entry_date < "TODAY"');
end;
select to_char(sysdate, 'DD-Mon-YYYY HH24:MI:SS') as "Current Time" from MyTable; | |  | |  |
|