Create table as select


create table xxx as select create table table1 as select * from table2 where 2=3;

根據table2的表結構,創建tables1

create table table1 as select * from table2

根據table2的表結構,創建tables1,同時將table2的數據插入table1

create table table1(column1_rename,column2_rename) as select column1,column2 from table2;

根據table2的表結構,創建tables1,重命名列,並復制數據


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM