Add Primary/Foreign Key in 7.3.2

Started by Brian C. Doyleover 22 years ago2 messagesgeneral
Jump to latest
#1Brian C. Doyle
bdoyle@umpa-us.com

Hello all,

I was wondering if there is any way to add a primary and/or foreign keys to
existing tables in 7.3.2

----------
UMPA

Brian C. Doyle
Director, Internet Services
United Merchant Processing Association
<http://www.umpa-us.com&gt;http://www.umpa-us.com
1-800-555-9665 ext 212

#2Melanie Bergeron
mbergeron_pg@globeecom.com
In reply to: Brian C. Doyle (#1)
Re: Add Primary/Foreign Key in 7.3.2

You can do this by doing
ALTER TABLE mytable
ADD CONSTRAINT myconstraint FOREIGN KEY (table_id) REFERENCES
myothertable(table_id);

Melanie

Brian C. Doyle wrote:

Show quoted text

Hello all,

I was wondering if there is any way to add a primary and/or foreign
keys to existing tables in 7.3.2

------------------------------------------------------------------------

Brian C. Doyle
Director, Internet Services
United Merchant Processing Association
http://www.umpa-us.com
1-800-555-9665 ext 212