Skip to content

Instantly share code, notes, and snippets.

@masterkawaster
Created February 12, 2019 13:52
Show Gist options
  • Save masterkawaster/f36fa6ca84a95a18606fc1fa3c430811 to your computer and use it in GitHub Desktop.
Save masterkawaster/f36fa6ca84a95a18606fc1fa3c430811 to your computer and use it in GitHub Desktop.
Oracle and sql plus
--ORACLE SQL DEVELOPER
--ctrl + enter - run selected statement
--F9 compile and run selected statement
--determining the current date format:
SELECT value
FROM nls_session_parameters
WHERE parameter = 'NLS_DATE_FORMAT'
--output: RR/MM/DD
--delcaring variable:
VARIABLE ret_val NUMBER;
BEGIN
:ret_val:=4;
END;
/
PRINT ret_val
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment