public interface TableFunction extends SqlRenderable, Bindable
表级函数可作为 FROM 子句中的“虚拟表”参与查询,例如:
SELECT * FROM my_function(arg1, arg2)
实现该接口的对象需要具备:
SqlRenderable)Bindable)该接口仅描述表函数的结构,不限制具体的 SQL 方言或函数语法。
| 限定符和类型 | 方法和说明 |
|---|---|
Fn<?,?> |
originColumn()
返回表函数的返回列定义。
|
renderparameterBinderFn<?,?> originColumn()
对于 table-valued function,其返回值通常是一个“虚拟表”, 该表至少包含一个列,因此需要提供对应的列表达式。
Copyright © 2024–2026 Dynamic-SQL. All rights reserved.