sql >> Database teknologi >  >> RDS >> PostgreSQL

plpgsql-funktion, der returnerer flere kolonner, kaldes flere gange

Dette burde gøre jobbet:

SELECT (y).* FROM ( SELECT my_aggregate_function(border, lower_limit, upper_limit, operation) AS y FROM ( SELECT (x).*, operation FROM ( SELECT my_function(ca.timeslice_id) AS x, agc.operation FROM geometry_component agc JOIN volume av ON av.id = agc.volume_id JOIN volume_dependency avd ON avd.id = av.contributor_id JOIN my_rowset_function('2013-02-22') ca ON ca.feature_id = avd.id WHERE agc.timeslice_id = 12345 ORDER BY agc.sequence ) sub1 )sub2 )sub3

  1. Oracle hurtigere overlapningskontrol

  2. Liste over områder, der understøttes af Oracle-databasen

  3. Stop eller afslut langvarig forespørgsel i JDBC

  4. Overgang fra mysql til PDO