我有一个功能:
CREATE OR REPLACE FUNCTION f_compare_data_extract(tm_id_1 integer,tm_subid_1 integer,tm_id_2 integer,tm_subid_2 integer ) RETURNS integer AS $$
BEGIN
--Select * from A;
--Select * from B;
--Select * from C;
RETURN 0;
END
$$ LANGUAGE 'plpgsql' ;
当我运行函数时,我想要 3 个查询的输出结果:
SELECT f_compare_data_extract(13,2967,13,2968);
Select * from A;
Select * from B;
Select * from C;