I have added these foreign keys in a table using an alter table function.
I would like to add these as one stored procedure so when I execute the stored procedure, it will run and add these foreign keys in my table. Any help? Thanks
ALTER TABLE [child]
ADD FOREIGN KEY ([mother_father_caregiver_id])
REFERENCES [education] ([education_id])
ALTER TABLE [child]
ADD FOREIGN KEY ([education_id])
REFERENCES [caregiver] ([mother_father_caregiver_id])
ALTER TABLE [child]
ADD FOREIGN KEY ([household_id])
REFERENCES [household] ([household_id])
ALTER TABLE [household]
ADD FOREIGN KEY ([householdage_id])
REFERENCES [householdage] ([householdage_id])
ALTER TABLE [household]
ADD FOREIGN KEY ([livestock_id])
REFERENCES [livestock] ([livestock_id])
ALTER TABLE [household]
ADD FOREIGN KEY ([credit_id])
REFERENCES [credit] ([credit_id])
ALTER TABLE [household]
ADD FOREIGN KEY ([shock_id])
REFERENCES [householdshocks] ([shock_id])