SQL Server 2008 - How do i return a User-Defined Table Type from a Table-Valued Function?

后端 未结 4 1222
星月不相逢
星月不相逢 2020-11-29 10:14

Here\'s my user-defined table type...

CREATE TYPE [dbo].[FooType] AS TABLE(
 [Bar] [INT],
)

This is what ive had to do in my table-valued f

4条回答
  •  广开言路
    2020-11-29 10:27

    The syntax for CREATE FUNCTION indicates that the only way to define a table return type is by listing columns and types, a . Even SQL Server "Denali" has the same definition for . Although strangely, it's syntax doesn't include multi-statement Table valued functions, or anything else that references this fragment.

提交回复
热议问题