Skip to content

create-table-select #12

@Selflocking

Description

@Selflocking

赛题描述

复制表。

复制表并不是数据库中常用的功能,但是可以极大的方便我们测试与运维。其基本功能是在建表时通过select语句,直接创建出一张新的表,新表的结构通过select语句推导出来,数据会直接导入到新表中。

示例:

create table create_table_select_t6 as select t1.id, t1.age, t2.name from create_table_select_t1 t1, create_table_select_t2 t2 where t1.id=t2.id;

赛题地址

https://open.oceanbase.com/train/TopicDetails?questionId=600004&subQesitonId=800024&subQuestionName=create-table-select

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions