表的複製、聯合(union)查詢、升降排序、正則表達式查詢

一、表的複製: 1、只複製表結構到新表 create table 新表 select * from 舊錶 where 1=2 或者 create table 新表 like 舊錶 2、複製表結構及數據到新表 create table新表 select * from 舊錶 二、集合查詢 1、集合所有元素,不去除重複數據 關鍵字 :union all 2、去除重複元素 關鍵字:union 3、聯合多個
相關文章
相關標籤/搜索