setting default values. [message #1811] |
Fri, 31 May 2002 12:50 |
ckr
Messages: 13 Registered: May 2002
|
Junior Member |
|
|
hi,
i just want to know how to set default value for a column.
i used the query
SQL> create table orders1
2 (
3 order_num integer not null,
4 order_date date not null default sysdate,
5 cust_id varchar2(10) not null
6 );
the answer is
order_date date not null default sysdate,
*
ERROR at line 4:
ORA-00907: missing right parenthesis
can any body tell what is wrong with this query?and how to set default values.
thanku.
|
|
|
|