0

无法将外键添加到表中。数据库图: https ://pp.vk.me/c638520/v638520058/11d8a/yqKLEPtqNOk.jpg

代码:

ALTER TABLE public.row DROP CONSTRAINT statement_section_id_fk;
ALTER TABLE public.row
ADD CONSTRAINT statement_section_id_fk
FOREIGN KEY (row_id) REFERENCES statement_section (section_id) ON DELETE CASCADE ON UPDATE CASCADE;

没有警报,没有例外,只是https://pp.vk.me/c638520/v638520058/11d83/ymwwrM1udhA.jpg

4

0 回答 0