将数据库中一张表的全部内容复制到数据库中另一张表中

1.如果目标表不存在:
select * into 新表名 from 旧表名;
2.如果目标表已存在:
insert into 新表名 select * from 旧表名;

No comments, so go and ...add one

Speak Your Mind

Your email address will not be published. Required fiels are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>