Table-Valued Functions in ORACLE 11g ? ( parameterized views )

前端 未结 3 1004
旧时难觅i
旧时难觅i 2020-12-03 03:37

I\'ve seen discussions about this in the past, such as here. But I\'m wondering if somewhere along the line, maybe 10g or 11g (we are using 11g), ORACLE has introduced any b

3条回答
  •  被撕碎了的回忆
    2020-12-03 04:29

    There are TWO types of table-valued functions in SQL SERVER:

    1. Inline table-valued function: For an inline table-valued function, there is no function body; the table is the result set of a single SELECT statement. This type can be named as 'parameterized view' and it has no equivalent in ORACLE as I know.

    2. Multistatement table-valued function: For a multistatement table-valued function, the function body, defined in a BEGIN...END block, contains a series of Transact-SQL statements that build and insert rows into the table that will be returned.

    The above sample (By Gary Myers) creates a table function of the second type and it is NOT a 'parameterized view'.

提交回复
热议问题