相关疑难解决方法(0)

如何将自定义类型数组传递给Postgres函数

我有自定义类型

CREATE TYPE mytype as (id uuid, amount numeric(13,4));
Run Code Online (Sandbox Code Playgroud)

我想将它传递给具有以下签名的函数:

CREATE FUNCTION myschema.myfunction(id uuid, mytypes mytype[])
  RETURNS BOOLEAN AS...
Run Code Online (Sandbox Code Playgroud)

如何在postgres查询中调用它,并且不可避免地从PHP中调用?

php sql postgresql plpgsql postgresql-9.1

5
推荐指数
2
解决办法
2788
查看次数

标签 统计

php ×1

plpgsql ×1

postgresql ×1

postgresql-9.1 ×1

sql ×1