是否可以将记录从一个表转移到另一个表?

编程入门 行业动态 更新时间:2024-10-09 16:28:44
本文介绍了是否可以将记录从一个表转移到另一个表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想删除一张表中的记录,同时我想将它们存储在其他表中 是否可能?如果是的话怎么样? 谢谢

i want to delete records in one table and at the same time i want to store them in other table is it possible? if yes how? thanks

推荐答案

我假设你在谈论SQL ... 如果您使用的是MSSQL 2005或更高版本,则可以这样做: technet.microsoft/en-us/library/ms177564(v = sql.90).aspx [ ^ ] 对于其他SQL,请尝试以下方法: 1.将表A中的新记录插入表B 2.从表A中删除记录 I assume you are talking about SQL... If you are on MSSQL 2005 or later you may do this way: technet.microsoft/en-us/library/ms177564(v=sql.90).aspx[^] For other SQL try this: 1. insert new records form table A to table B 2. delete records from table A

你可以用Google搜索。 尝试这样.. you could have googled. try like this.. insert into table2 select <column1,column2,.....> from table1 where <some condition> delete table1 where <some condition>

更多推荐

是否可以将记录从一个表转移到另一个表?

本文发布于:2023-07-09 10:06:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1085509.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转移到

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!