Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

execute immediate



According to the standard EXEC SQL EXECUTE IMMEDIATE dynamically
prepares and executes a statement. ECPG used to just simulate this by
simply executing the statement. But before rewriting this I wonder if it
makes any sense at all. Where's the advantage of preparing a statement,
then executing it and then of course deallocating it again over a simple
execution?

The EXEC SQL EXECUTE IMMEDIATE clause is needed to be able to
dynamically compute the statement to be executed, but do we really need
to prepare it?

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group