By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,781 Members | 1,268 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,781 IT Pros & Developers. It's quick & easy.

Creating variables outside a 'create function'

P: n/a
Is it possible to create variables outside a create statement? I'd
like to do something along the lines of

SELECT INTO temp primary_key_id from a_table where
a_table.value='something';

However this seems to only work within creating functions. Probably
because it's being interpreted as standard sql instead of plpgsql.

This would probably mean the real question is can i ecapsulate a
sequence of sql statements with plpgsql?
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.