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

Closed
Tracked by #14766
zimulala opened this issue Sep 27, 2021 · 0 comments · Fixed by #56702
Closed
Tracked by #14766

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

zimulala opened this issue Sep 27, 2021 · 0 comments · Fixed by #56702
Labels
feature/accepted This feature request is accepted by product managers type/enhancement The issue or PR belongs to an enhancement.

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
17 tasks
@YangKeao YangKeao added the type/enhancement The issue or PR belongs to an enhancement. label Oct 17, 2024
ti-chi-bot bot pushed a commit that referenced this issue Oct 28, 2024
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 type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants