PostgreSQL使用json填充记录集而不使用预定义类型
我正在尝试使用PostgreSQL使用json填充记录集而不使用预定义类型,postgresql,plpgsql,postgresql-9.3,Postgresql,Plpgsql,Postgresql 9.3,我正在尝试使用plpgsql中的json\u populate\u recordset函数。当x是自定义类型或表类型时,一切正常。但是,在执行时是否可以将它与cusom tyoe definer这样的东西一起使用呢?就像我们在CTE中使用的一样 使用cte(a int,b int 4)?在PostgreSQL 9.5上测试:从json_populate_记录集((0,0)中选择*作为t(a int,b int)@Abelisto thx很多,为我工作!
plpgsql
中的json\u populate\u recordset
函数。当x
是自定义类型或表类型时,一切正常。但是,在执行时是否可以将它与cusom tyoe definer这样的东西一起使用呢?就像我们在CTE中使用的一样
使用cte(a int,b int 4)
?在PostgreSQL 9.5上测试:从json_populate_记录集((0,0)中选择*作为t(a int,b int)
@Abelisto thx很多,为我工作!