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

是否可以支持这样的语法 create TABLE t2 as SELECT * from t1 #246

Closed
qq290070744 opened this issue Jul 20, 2020 · 2 comments
Closed
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@qq290070744
Copy link

描述您想要的功能:
是否可以支持这样的语法

create TABLE t2 as SELECT * from t1

执行这条语句保错 ”表至少需要有一个列. 不支持的语法类型.“

这条语句在MySQL命令行可以执行成功

@hanchuanchuan
Copy link
Owner

暂不支持的。

该语法会同时建表和写入数据,但表结构不容易确定,所以近期无计划支持。

@hanchuanchuan hanchuanchuan added enhancement New feature or request help wanted Extra attention is needed labels Jul 23, 2020
hanchuanchuan added a commit that referenced this issue Sep 6, 2020
…upport

feature: 添加CREATE TABLE AS SELECT语法支持 (#246)
@hanchuanchuan
Copy link
Owner

已添加CREATE TABLE AS SELECT语法支持.

Releases (选择v1.2.3-29或以上版本)

功能说明:
会审核mysql参数enforce_gtid_consistency和gtid_mode参数.
(MySQL的GTID一致性验证可能会报错: Statement violates GTID consistency: CREATE TABLE ... SELECT.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants