MySQL Forums
Forum List  »  Triggers

Re: TRIGGER BEFORE INSERT - ALTER ADD column form insert value
Posted by: William Chiquito
Date: May 28, 2008 09:28AM

Hi Mihai,

See:
Quote

F.1. Restrictions on Stored Routines and Triggers
...
For stored functions (but not stored procedures), the following additional statements or operations are disallowed:
* Statements that do explicit or implicit commit or rollback.
...

Quote

12.4.3. Statements That Cause an Implicit Commit
Each of the following statements (and any synonyms for them) implicitly end a transaction, as if you had done a COMMIT before executing the statement:
* ALTER TABLE, BEGIN, CREATE INDEX, DROP INDEX, DROP TABLE, LOAD MASTER DATA, LOCK TABLES, LOAD DATA INFILE, RENAME TABLE, SET AUTOCOMMIT=1 (if the value is not already 1), START TRANSACTION, UNLOCK TABLES.
...



Edited 3 time(s). Last edit at 05/28/2008 04:36PM by William Chiquito.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: TRIGGER BEFORE INSERT - ALTER ADD column form insert value
3823
May 28, 2008 09:28AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.