# 创建外键语句结构: # ALTER TABLE <表名> # ADD CONSTRAINT FOREIGN KEY (<列名>) # REFERENCES <关联表>(关联列) alter table audit add constraint foreign key (emp_no) references employees_test (id);
# 创建外键语句结构: # ALTER TABLE <表名> # ADD CONSTRAINT FOREIGN KEY (<列名>) # REFERENCES <关联表>(关联列) alter table audit add constraint foreign key (emp_no) references employees_test (id);