读书人

with as update 的有关问题

发布时间: 2012-08-22 09:50:35 作者: rapoo

with as update 的问题
;with as rowdata()

update rowdata
select rowdata
有什么办法实现吗

[解决办法]

探讨
;with as rowdata()

update rowdata
select rowdata
有什么办法实现吗

[解决办法]
探讨
;with as rowdata()

update rowdata
select rowdata
有什么办法实现吗

[解决办法]
探讨
引用:
;with as rowdata()

update rowdata
select rowdata
有什么办法实现吗

你是这个意思吧?不过你搞得也太省事了吧
可以这样
;with as rowdata()

, tb--这是第二个cte
(
update rowdata --这里执行update语句
)
select * from tb

读书人网 >SQL Server

热点推荐