I need to develop a way to determine if Oracle is 11g or newer, because essentially I need to know if DB supports PIVOT.
Getting the version number if itβs not so difficult, so I got:
select * from v$version
Unfortunately, this does not give a simple number, but 5 entries, including bites and various version numbers:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi PL/SQL Release 10.2.0.5.0 - Production CORE 10.2.0.5.0 Production TNS for Linux: Version 10.2.0.5.0 - Production NLSRTL Version 10.2.0.5.0 - Production
So, is there a way to determine if my Oracle has 11 g or higher, or even better if the database supports the PIVOT operator?
Thanks!
source share