I want to alter a table called person and want to add foreign key to it using office
table
the query I am using is
ALTER TABLE person
ADD CONSTRAINT person_Office_FK
FOREIGN KEY ( Office_id )
REFERENCES Office ( Office_id ) ;
Table office
has around 500,000 rows and table person
has around 5 million
This query is taking forever i am not sure what is happening.