1、我想要创建一个新表table1,并且这个表中的结构与ts_account这个表中完全一样,如何编写SQLSQL语句:SQL SERVER:select * into ele_payee_account_rr from ele_payee_account where 1=2ORACLE & MYSQL:create table ele_payee_account_rr asselect * from ele_payee_account where 1=22、db2_复制表和数据(假设:myuser表中是库中已经存在的表,而myuser_copy是我们要复制的表)方法1:两步1)创建表结构create table myuser_copy like myuser2)插入数据insert into myuser_copy select * from myuser 方法2:两步 1),创建表结构和数据create table myuser_copy2 as ( select * from myuser ) data initially deferred refresh deferred2),刷新表refresh table myuser_copy2另外:只创建表结构create table myuser_copy2 as (select * from myuser) definition only
注:2、db2_复制表和数据转自网易博客
http://huxiaofei590.blog.163.com/blog/static/3259612201132391841179/