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)
2 VALUES (1);
1 row created.
SQL>
SQL> select * from myTable;
ID STATUS LAST_MODI
---------- -------------------- ---------
1 Order placed 02-JUN-07
SQL>
SQL> drop table myTable;
Table dropped.
SQL>
|