0
A
回答
1
你是不是在特定你的问题,有不同的方式表值函数可以(根据需要)被称为:
create procedure Test
(
@someParam varchar(50),
@someParam2 varchar(50)
)
as
begin
set nocount on
...
select tf.Col1, tf.Col2, tf.Col3, tf.Col4, tf.Col5
from tableValuedFunction0() tf
select tf.Col1, tf.Col2
from tableValuedFunction1(@someParam) tf
create table #temp (...)
insert into #temp (...)
select tf.Col1, tf.Col2, tf.Col3
from tableValuedFunction2(@someParam, @someParam2) tf
create table #temp2 (...)
insert into #temp2 (...)
select t.SomeCol, tf.Col1, tf.Col2
from someTable t
cross apply tableValuedFunction3(@someParam2, t.SomeOtherCol) tf
update t
set t.SomeCol = tf.Value
from someOtherTable t
join tableValuedFunction4(@someParam2) tf on tf.SomeOtherCol = t.SomeOtherCol
end
相关问题
- 1. 调用存储过程不起作用
- 2. 调用从CLR存储过程中的存储过程与表值参数
- 3. 如何从另一个存储过程调用存储过程?
- 4. 从codeigniter调用存储过程不起作用
- 5. 从JDBC调用Postgresql存储过程不起作用
- 6. 如何从js调用存储过程?
- 7. 如何从mvc3调用存储过程?
- 8. 如何从SSIS调用存储过程?
- 9. 从调用存储过程
- 10. 如何调用存储过程在表中插入值
- 11. 如何从存储过程调用存储功能和存储返回值
- 12. 从存储过程中调用存储过程在MySQL中
- 13. 如何调用其他存储过程中的存储过程
- 14. 从存储过程中的select语句调用存储过程
- 15. 在存储过程中从插入调用存储过程
- 16. 从存储过程返回字符串值不起作用
- 17. 如何调用标量值从一个存储过程
- 18. 如何用activerecord调用存储过程?
- 19. 如何从select中使用变量来调用存储过程?
- 20. 存储过程不起作用
- 21. 我的存储过程不起作用
- 22. 参数不起作用存储过程
- 23. 存储过程不起作用
- 24. 分页存储过程不起作用
- 25. INSERT的存储过程不起作用
- 26. c#存储过程不起作用
- 27. MySQL存储过程不起作用
- 28. 更新存储过程不起作用
- 29. 存储过程不起作用?
- 30. 调用带参数的撇号存储过程不起作用