Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

function parameter as array?

Status
Not open for further replies.

djam

Technical User
Nov 15, 2002
223
CA
Is it possible to pass an array in a functin call? also is there loops in functions?

I would like to do something like this...

eg.
create function sumPrice ([array of id ints]) return int4 AS ' --loop the size of the array and sum the Price of each id, then return the sum 'LANGUAGE' sql';


any examples would be helpful

thanks
" ahhh computers, how they made our lives much simpler ;) "
 
sorry, for the previous question the LANGUAGE should not be sql because sql doesn't have loops I would like to use postgres

thanks " ahhh computers, how they made our lives much simpler ;) "
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top