Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the operation of dropping multi-foreign-keys in one statement... #28421

Open
Tracked by #14766
zimulala opened this issue Sep 27, 2021 · 0 comments
Open
Tracked by #14766
Labels
feature/accepted This feature request is accepted by product managers

Comments

@zimulala
Copy link
Contributor

zimulala commented Sep 27, 2021

Description

Support dropping multi-foreign-keys in one statement, the syntax as follows:

ALTER TABLE tbl_name
    [alter_specification [, alter_specification] ...]

alter_specification:
DROP FOREIGN KEY fk_symbol

e.g.

create table t1 (a int, b int, key(a), key(b));
create table t2 (c int, CONSTRAINT a foreign key (c) references t1(a), CONSTRAINT b foreign key (c) references t1(b));
alter table t2 drop foreign key a, drop foreign key b;
@zimulala zimulala added the feature/accepted This feature request is accepted by product managers label Sep 27, 2021
@YangKeao YangKeao mentioned this issue Sep 5, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/accepted This feature request is accepted by product managers
Projects
None yet
Development

No branches or pull requests

1 participant