如何刪除 FireBird 中某一個 table 所有的 constraints |
尚未結案
|
fadichen
初階會員 發表:29 回覆:68 積分:29 註冊:2003-09-11 發送簡訊給我 |
Q.如何刪除 FireBird 中某一個 table 所有的 constraints 如果 A table 中有設定 reference 到 B table 的 constraint
就不能直接 drop table A
ex:
A=order, B=customer
A 中有 order.CustomerNo 參考到 Customer.CustomerNo
如果不把 A 的 constraint drop 掉
ALTER TABLE order DROP CONSTRAINTS cs_1
就不能直接 DROP TABLE order,
如何直接一次把 order 所有 reference 到其他 table 的 constraint 都 drop 掉 ?
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |