English 中文(简体)
2008年:UDF 参数类型和回归类型
原标题:SQL Server 2008 - UDF Parameter Types And Return Types

在2008年撰写UDFs书时,我常常在以下几处 st。 请告诉我我的以下假设是否正确或错误。

  1. A UDF can return Data Table.
  2. But a UDF can t receive a Data Table as a parameter.
  3. A UDF can receive an User-Defined-Table- Type(UDTT) as a parameter.
  4. But a UDF can t return an User-Defined-Table-Type(UDTT).
问题回答
  1. Right.
  2. Right.
  3. Right, unless it is a CLR UDF.
  4. Right.
  1. Right
  2. Right (if you mean - real existing table, not table typed variable)
  3. Right
  4. Right
  1. table valued functions can, no scalar ones
  2. Correct
  3. Correct
  4. Correct




相关问题
Performance impact of indexed view in MS SQL Server 2008

Does anyone have experience with using indexed view in MS SQL Server 2008? I am trying to find out how does indexed view affect performance of insert / update statements, that are adding / updating ...

Lock Escalation - What s happening here?

While altering a table (removing a column) in SQL Server 2008, I clicked the Generate Change Script button and I noticed that the change script it generated drops the column, says "go" and then runs ...

Round to nearest 5 in SQL Server

I have a Money column in my SQL Server 2008 table. In my below query how can I round it to nearest 5$ select FineAmount from tickets Thanks

热门标签