-
-
Save bitwes/1320773 to your computer and use it in GitHub Desktop.
butch test
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
declare | |
dbversion number; | |
l_num number := 12; | |
l_version varchar2(200); | |
begin | |
select to_number(substr(version, 1, instr(version, '.') - 1)), | |
version | |
into dbversion, l_version | |
from v$instance; | |
dbms_output.put_line(dbversion||' from '||l_version); | |
if dbversion >= l_num then | |
dbms_output.put_line(dbversion||' >= '||l_num); | |
end if; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment