prepare()
От
Tom Allison
Тема
prepare()
Дата
Msg-id
51762686-B75E-4B2F-8425-38C0BA06DEE4@tacocat.net
Список
Дерево обсуждения
prepare() Tom Allison <tom@tacocat.net>
Re: prepare() "Stuart Cooper" <stuart.cooper@gmail.com>
Re: prepare() "Stuart Cooper" <stuart.cooper@gmail.com>
Re: prepare() Tom Lane <tgl@sss.pgh.pa.us>
Re: prepare() "Stuart Cooper" <stuart.cooper@gmail.com>
Is there an advantage to using something like $dbh->prepare($sql) if
the SQL is going to be run once within the scope of the code? The
code block may be run many times in a minute as in a function call ---
while (<>) {
insert_something($_);
}
Will the prepare statement be cached @ the database even if it's
destroyed in the code/application?
В списке pgsql-general по дате отправления