DB2:
取得当前年月日:
- SELECT current date FROM sysibm.sysdummy1
取得当前时分秒:
- SELECT current time FROM sysibm.sysdummy1
取得当前年月日时分秒:
- SELECT current timestamp FROM sysibm.sysdummy1
select getdate()
Oracle:
select sysdate from dual
sqlserver:
select getdate()