My friend asking me if there a way to use 1 query to select datetime and use it for any database.
Atm he using this query for Oracle :
SELECT vt_sysdate() FROM dual;
I know dual table is for Oracle only. But he want to use this same query for other database, for example PostgreSQL, as well.
So is there a way to make this query run on every database (Maybe by create a dual table for every database). Or is there a query to get system datetime that work on any database ?
Thank you for you help.