将一个表的纪录添加到另外一个表中

zhlin 2004-02-03 01:33:30
将一个表的纪录添加到另外一个表中
Thanks
...全文
46 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Frewin 2004-02-03
  • 打赏
  • 举报
回复
Select * into 目的表名 from 源表名
lxwlhc 2004-02-03
  • 打赏
  • 举报
回复
Select * into 目的表名 from 源表名
lygfqy 2004-02-03
  • 打赏
  • 举报
回复
http://www.csdn.net/Develop/article/23%5C23581.shtm
welyngj 2004-02-03
  • 打赏
  • 举报
回复
agree with upstairs.


1.select * into 新表 from 表 --新表不存在
2.insert into 新表(col1,col2..) select col1,col2.. from 表 --新表存在
根据楼主的意思,选择
solidpanther 2004-02-03
  • 打赏
  • 举报
回复
select * into 另 from 表
insert into 另 select * from 表

34,587

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧