I thought it a good idea to write a series of blog posts about some new features of the Oracle 11g database I find useful in an APEX project.
I decided to do a "Top 15". It's very difficult to order them, as for one person or project a feature would be number 1, but for another, it would only be found on place 10. So don't see it as I like the feature I put on place 15 less than the one on place 10. I like all new features ;-)
My research... this top 15 came together after reading:
- The Oracle 11g Database New Features Guide
- Oracle Database 11g: The Top New Features for DBAs and Developers by Arup Nanda
- Tim Hall's articles on Oracle Database 11g
- and Tom Kyte's Top 11 things about 11g.
column [datatype] [GENERATED ALWAYS] AS (column_expression) [VIRTUAL] [ inline_constraint [inline_constraint]... ]SQL> CREATE TABLE EMP_WITH_VC (
EMPNO NUMBER(4,0) NOT NULL ENABLE,
ENAME VARCHAR2(10 BYTE),JOB VARCHAR2(9 BYTE),
MGR NUMBER(4,0),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2,0),
NEW_SAL AS (ROUND(sal*1.10,2)),
TOTAL_SAL_COMM NUMBER GENERATED ALWAYS AS (ROUND(sal*1.10+NVL(comm,0),2)) VIRTUAL,
HIRE_YEAR AS (TO_CHAR(hiredate, 'YYYY')),
PRIMARY KEY (EMPNO)
);
SQL> INSERT INTO EMP_WITH_VC (empno, ename, job, mgr, hiredate, sal, comm, deptno)
SELECT empno, ename, job, mgr, hiredate, sal, comm, deptno FROM EMP; SQL> SELECT * FROM EMP_WITH_VC


- An index can be created on a Virtual Column (this would be a function based index)
- You can not do DML (insert, update, delete) on a Virtual Column, but you can use it in a WHERE clause
- Virtual Columns are only available on relational heap tables
- Virtual Column expression work only on the same table, so not cross table and they can't contain other Virtual Columns
- You can use Vitual Columns in Constraints (PK, FK, Check)
- You can partition on Virtual Columns !

As a little kid (around 1983) I played 






















The website is completely build in 

