我们可以通过在#Table中进行更改来更新表吗? [英] Can we update the table by making the changes in # Table ?

查看:76
本文介绍了我们可以通过在#Table中进行更改来更新表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从员工中选择*进入#Tab
插入#Tab值("Giri","SSE","HB")

这会将数据插入#Tab.但是我希望这些更改能够反映到员工"表中.

select * into #Tab from employees
insert into #Tab values (''Giri'', ''SSE'', ''HB'')

This will insert data into #Tab. But I want those changes to be reflected back to ''employees'' table. Is it possible ?

推荐答案

否,#Tab表是一个临时表.如果要更新原始表,则需要单独进行操作.
No, the #Tab table is a temporary table. If you want to update the original table(s) you need to do that seperatley.


这篇关于我们可以通过在#Table中进行更改来更新表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆