sql – 有可能在一个函数中有临时表吗?
发布时间:2020-12-12 16:12:57 所属栏目:MsSql教程 来源:网络整理
导读:显然,我不能使用它们.我收到一条错误信息,如: Invalid use of a side-effecting operator ‘SELECT’ within a function 如果我想做这样的事情: select bleh into #temp from Blah 一个功能里面 解决方法 不,每 this thread where the same question was a
显然,我不能使用它们.我收到一条错误信息,如:
如果我想做这样的事情: select bleh into #temp from Blah 一个功能里面 解决方法不,每 this thread where the same question was asked,你不能,但你可以使用一个表变量DECLARE @MyTempTableVariable TABLE (SCHEMA) INSERT INTO @MyTempTableVariable SELECT bleh FROM bleh (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |