📜  postgresql 在函数中传递数组 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:06.559000             🧑  作者: Mango

代码示例1
-- Definition
CREATE FUNCTION my_method(INT[]) RETURNS VOID AS $$ 
       ...
END $$ LANGUAGE plpgsql;

-- Use
SELECT my_method(ARRAY [1,2,3,4])

-- The reference (stackoverflow answer) defines two other methods to do this