insert into select和select into的使用和区别介绍 推荐 一切、虚伪 2013-09-21 16:43 2013/09/21 ©著作权 读给你听 文章标签 insert select into 专栏分类数据库 阅读数6324 评论数0 点赞数0 收藏数0 ©著作权归作者所有:来自万象专栏作者一切、虚伪的原创作品,请联系作者获取转载授权,否则将追究法律责任insert into select和select into的使用和区别介绍 导读:insert into ... select ...:可将表1中的全部数据或者部分数据复制到表2中。 eg: 复制代码 代码如下: insert into t2.. insert into ... select ...:可将表1中的全部数据或者部分数据复制到表2中。 eg: 复制代码 代码如下: insert into t2(id,name,pwd) select id,name,pwd from t1 注:t2必须存在。t1中查询的列名可不与t1列名相同。无 values select...into:查询t1中的数据,插入到t2中。 eg: 复制代码 代码如下: select * into t2 from t1 注:t2被创建并填充数据。 更多文章请关注《万象专栏》 转载请注明出处:https://www.wanxiangsucai.com/read/cv148094 话题推荐: #insert# #select# #into# 打赏 0 赞 收藏 评论 举报 上一篇: 下一篇:数据库存储文章的方法与技术