sql - How to Store data using 'INTO' Postgresql -


I want to store the value of this query inside a stored process:

Select > from Myname

but mydata "There is a known variable that does not exist. Is there any way to store those results in a variable in postgra?

Believing that you are trying to do this, in relation to the PL / PGSLL function, you The first variables must be declared.

  Create or change function FOBOR returns FOBAR () $$ as DECLARE MYDATA RECORD as zero; Select me; - Now do something with my data $$ LANGUAGE plpgsql;  

See:


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -