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 db2/sqlserver some ddl sql #6343

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

zycgit
Copy link
Contributor

@zycgit zycgit commented Feb 8, 2025

db2
rename table xxx
create table xxx as xxx with data;
alter table user_table drop address;
alter table abc drop unique xxx;
alter table abc drop foreign key xxx;

@suger-no
Copy link

suger-no commented Feb 8, 2025

sqlserver
create schema
create schema create table xxxxxx
create schema create view xxxxx
create schema authorization
drop schema

@@ -25,10 +26,27 @@ public class DB2CreateTableStatement extends SQLCreateTableStatement implements
private boolean dataCaptureNone;
private boolean dataCaptureChanges;

private AsSelectWith selectWith;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种为什么不用一个boolean解决?

Copy link
Contributor Author

@zycgit zycgit Feb 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为还有其它方式,本次只支持了其中一种。如:
create table new_table_name1 as (select * from table1) definition only;
create table new_table_name2 as (select * from table1) with data;
create table new_table_name3 as (select * from table1) WITH no data;

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants