Re: Transactions

Поиск
Список
Период
Сортировка
От
Тема Re: Transactions
Дата
Msg-id 20050627200939.22683.qmail@web33307.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: Can I run two Postgres sessions at the same time?  (Brad Nicholson <bnichols@ca.afilias.info>)
Ответы Re: Transactions  (Volkan YAZICI <volkan.yazici@gmail.com>)
Список pgsql-novice
i have the following two queries i would like to run.


$sql_product = 'SELECT product_id, product_number FROM
t_product ' .
'ORDER BY product_number ASC';

$sql_employee = 'SELECT employee_id, employee_name
FROM t_employee ORDER BY LOWER(employee_name) ASC';

$rs_product = $db->Execute($sql_product);
$rs_employee = $db->Execute($sql_employee);

i read somewhere that a transaction will speed up the
process b/c only one db
connection/hit/request/whatever is made (i may have
said it wrong, but hopefully you get the meaning)
instead of two.

how do i implement the BEGIN and COMMIT in php?  i saw
an example on php.net, but it didn't apply to adodb.
in the example, begin and commit were transmitted to
the db via the the pg_query function.

tia...



__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs

В списке pgsql-novice по дате отправления:

Предыдущее
От: Joel da Silva
Дата:
Сообщение: PostGis Extension
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: PostGis Extension