SQL>
SQL> CREATE TABLE myTable (
2 id INTEGER,
3 duration INTERVAL DAY(3) TO SECOND (4)
4 );
Table created.
SQL> INSERT INTO myTable (id, duration)VALUES (6, INTERVAL '123 2:25:45.123' DAY TO SECOND);
INSERT INTO myTable (id, duration)VALUES (6, INTERVAL '123 2:25:45.123' DAY TO SECOND)
*
ERROR at line 1:
ORA-01873: the leading precision of the interval is too small
SQL>
SQL> select * from myTable;
no rows selected
SQL>
SQL>
SQL> drop table myTable;
Table dropped.
SQL>
SQL>
|