Skip to content

Instantly share code, notes, and snippets.

@mcollovati
Last active December 11, 2020 20:07
Show Gist options
  • Save mcollovati/76a7410f502c812f69cd60e0c430d2f3 to your computer and use it in GitHub Desktop.
Save mcollovati/76a7410f502c812f69cd60e0c430d2f3 to your computer and use it in GitHub Desktop.

Oracle Express Edition 11g

SELECT
	CURRENT_TIMESTAMP AS before_currdate,
	CURRENT_DATE      AS currdate,
	CURRENT_TIMESTAMP AS after_currdate
FROM DUAL;
|BEFORE_CURRDATE        |CURRDATE               |AFTER_CURRDATE         |
|-----------------------|-----------------------|-----------------------|
|2020-12-11 10:02:18.941|2020-12-11 10:02:18.000|2020-12-11 10:02:18.000|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment