提取某表的字段到新表的sql语句

漠叔 2010-05-01 05:06:44
旧表News有id,content字段,新表News_01有aid,content字段,aid对应旧表的id
想要把旧表的id,content字段内容提取出来写入到新表,sql应该如何写?
...全文
121 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzp4881 2010-05-01
  • 打赏
  • 举报
回复
insert into news_01 select id as aid,content from news
  • 打赏
  • 举报
回复
INSERT INTO News_01(aid,content) SELECT id,content from [News]

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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