注: like 创建出来的新表包含源表的完整表结构和索引信息
as创建出来的t2表(新表)缺少t1表(源表)的索引信息,只有表结构相同,没有索引
like ----- create table db_note(新表) like note('源表');
as ------ create table t2 as select * from t1 where 1=2;
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!