Return rows from a PL/pgSQL function
问题 I have a procedure in PostgreSQL: CREATE OR REPLACE FUNCTION get_geom_difference() RETURNS void AS $$ BEGIN SELECT filedata.num,st_area(ST_Difference(ST_TRANSFORM(filedata.the_geom,70066),filedata_temp.the_geom)) FROM filedata, filedata_temp Where filedata.num=filedata_temp.num end; $$ LANGUAGE 'plpgsql' I call it in Java and want to get result of this procedure. How to change this procedure to make it possible get a result? And how to work with it in JDBC? Now I use this: Integer fileId;