Показать сообщение отдельно
Старый 16.11.2001, 15:51
BigIlya вне форума Посмотреть профиль Отправить личное сообщение для BigIlya Найти все сообщения от BigIlya
  № 10  
BigIlya

Регистрация: Oct 2001
Адрес: Рязань
Сообщений: 29
По умолчанию Ну хорошо...

Откроем пункт 7.31 документации по MySQL...Цитирую:
7.31 BEGIN/COMMIT/ROLLBACK Syntax
By default, MySQL runs in autocommit mode. This means that as soon as you execute an update, MySQL will store the update on disk.

If you are using BDB tables, you can put MySQL into non-autocommit mode with the following command:

SET AUTOCOMMIT=0

After this you must use COMMIT to store your changes to disk or ROLLBACK if you want to ignore the changes you have made since the beginning of your transaction.

If you want to switch from AUTOCOMMIT mode for one series of statements, you can use the BEGIN or BEGIN WORK statement:

BEGIN;
SELECT @A:=SUM(salary) FROM table1 WHERE type=1;
UPDATE table2 SET summmary=@A WHERE type=1;
COMMIT;

Note that if you are using non-transaction-safe tables, the changes will be stored at once, independent of the status of the autocommit mode.


К чему бы это они написали? Мне здесь только не понятно, что такое BDB таблицы? Если я не прав, то заранее извиняюсь.
А на счет очереди...так BRUDALIS абсолютно прав!
__________________
Пейте пиво!