Created
February 12, 2019 13:52
-
-
Save masterkawaster/f36fa6ca84a95a18606fc1fa3c430811 to your computer and use it in GitHub Desktop.
Oracle and sql plus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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