Run tool create_fk_for_existing_table_field

Back

Description

create a foreign key constrain for a table and a field that already exist.

Useful when the database was poorly designed you need to correct it later

ex. create_fk_for_existing_table_field('HqsSchedule', 'InspectionType','InspectionType','InspectionTypeID','no') -- yes

Category: SQL

Author: edilio

Please, enter params:

Result