What is the syntax turn off auto commit?

Поиск
Список
Период
Сортировка
Искать

What is the syntax turn off auto commit?

От:
Raymond Chui <raymond.chui@noaa.gov>
Дата:
Вложения:


The Subject says its all.

To speed up a bulk of  INSERTs, I need to turn-off the auto commit 1st.
Then
at the end of INSERTs, issue COMMIT;
What is the syntax to turn off the auto commit? Thank you!

--Raymond

Re: What is the syntax turn off auto commit?

От:
Stephan Szabo <sszabo@megazone23.bigpanda.com>
Дата:

On Wed, 18 Jul 2001, Raymond Chui wrote:

> 
> 
> The Subject says its all.
> 
> To speed up a bulk of  INSERTs, I need to turn-off the auto commit 1st.
> Then
> at the end of INSERTs, issue COMMIT;
> What is the syntax to turn off the auto commit? Thank you!

Put them in an explicit transaction block
begin
 insert ...
 insert ...
commit;


FAQ