SQL>
SQL> CREATE TABLE myTable (
2 id INTEGER,
3 status VARCHAR2(20) DEFAULT 'Order placed' NOT NULL,
4 last_modified DATE DEFAULT SYSDATE
5 );
Table created.
SQL>
SQL>
SQL> INSERT INTO myTable (id, status, last_modified)
2 VALUES (2, 'Order shipped', '10-JUN-2004');
1 row created.
SQL>
SQL>
SQL> UPDATE myTable
2 SET status = DEFAULT;
1 row updated.
SQL>
SQL> select * from myTable
2
SQL> drop table myTable;
Table dropped.
SQL>
|