Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Adding/modifying columns
On Mon, 21 Jun 1999 12:59:02 +0000, Sam Jordan <sjo_at_spin.ch>
wrote:
>What's the easiest way to add/modify columns in a table,
>if new constraints should be added, too?
alter table XXXX
add (column_name varchar2(23),
some_id number, constraint fk_some_id foreign key references YYYYY);
The above should work. XXXX and YYYY are table names.
regards,
Jonathan