SQL>
SQL> CREATE TABLE myTable (
2 id INTEGER,
3 duration INTERVAL YEAR(3) TO MONTH
4 );
Table created.
SQL>
SQL> INSERT INTO myTable (id, duration)VALUES (2, INTERVAL '11' MONTH);
1 row created.
SQL>
SQL>
SQL> select * from myTable;
ID DURATION
---------- ---------------------------------------------------------------------------
2 +000-11
SQL>
SQL> drop table myTable;
Table dropped.
SQL>
|