| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Rookie help request
Marcus Leon wrote:
> Hello, newbie help appreciated!
>
> Is this the correct way to alter a field to make it NOT NULL?
> ALTER TABLE TABLE_X
> MODIFY (FIELD_Y DATE NOT NULL) TABLESPACE &&abc;
>
> Is this the correct way to add an index?
> CREATE INDEX pq_idx_XYZ ON TABLE_X
> (DATE_FIELD ASC) TABLESPACE &&def;
>
> Thanks
Where did you find this syntax? Because the answer is no. There is no reason to specify a tablespace when altering a constraint.
ALTER TABLE TABLE_X
MODIFY (FIELD_Y DATE NOT NULL);
and your syntax for creating an index should include the PCTFREE
parameter.
You can look up valid syntax at http://tahiti.oracle.com
Daniel Morgan Received on Fri Mar 07 2003 - 16:10:17 CST
![]() |
![]() |