sách gpt4 ăn đã đi

sql - VARIADIC 声明在 PostgreSQL 中意味着什么?

In lại Tác giả: Walker 123 更新时间:2023-11-29 11:19:27 25 4
mua khóa gpt4 giày nike

在 PostgreSQL 9.3.4 发行说明中说:

Ensure that the planner sees equivalent VARIADIC and non-VARIADIC function calls as equivalent (Tom Lane)

我搜索了 PostgreSQL 手册,但找不到它的定义。

我发现它与函数参数的模式(IN、OUT、VARIADIC)有关,但我不明白它是什么意思?我什么时候想使用它?如果函数具有 VARIADIC 属性,这对性能意味着什么?

câu trả lời hay nhất

可变参数函数是那些参数数量未定义的函数,它们存在于许多编程和查询语言中。

对于 PostgreSQL,您可以在 http://www.postgresql.org/docs/9.1/static/xfunc-sql.html 找到示例(35.4.5. 参数个数可变的 SQL 函数):

Effectively, all the actual arguments at or beyond the VARIADIC position are gathered up into a one-dimensional array, as if you had written

关于sql - VARIADIC 声明在 PostgreSQL 中意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33802583/

25 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress