Alter table and Add Constraint [message #206666] |
Fri, 01 December 2006 00:55  |
selvakumar_82
Messages: 138 Registered: October 2005 Location: chennai
|
Senior Member |
|
|
Hi Friends,
Its possible to add a constraint at the time of adding column..?
alter table gifterator_cart_finalimage ADD abc INTEGER NOT NULL CONSTRAINT ABC_FK FOREIGN KEY abc REFERENCES gifterator_product_details(grpd_id);
Its showing some error..
Kindly tell me the exact script..
Regards
Selva.R
|
|
|
|
|
|
|
|
|
|
Re: Alter table and Add Constraint [message #206949 is a reply to message #206944] |
Sat, 02 December 2006 11:25   |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
The original poster used invalid syntax. Littlefoot pointed out that invalid syntax stays invalid syntax, regardless of the tool you use!
(Your keyboard is stuck. Not only do all letters come out in capitals (maybe give the old capslock a good hit?), but there also appear to be some keys missing.)
|
|
|
|
|
|