0
我工作的H2数据库中添加多限制,我遇到这样的问题 - 下降一个约束是好的,我可以用这个语句如何下降,由1个SQL语句H2数据库
alter table customer drop constraint if exists fk_customer_order ;
对于添加一个约束也没关系,我可以使用这个语句。
alter table customer add constraint fk_customer_order foreign key (order_id) references order (id) on delete cascade on update cascade;
但问题是,在客户表我有更多的外键,我想在一个查询语句删除它们。 像这样
alter table customer drop constraint fk_customer_order
drop constraint fk_customer_information
drop constraint ....
但这似乎不能在H2数据库来完成,任何人都可以告诉我可以还是不添加或1个SQL statment降多约束?任何答案都欢迎,我很欣赏。