MySQL Forums
Forum List  »  Triggers

Re: Delete trigger deletes an entire table
Posted by: irek kordirko
Date: March 14, 2012 03:24PM

Omar Crea Wrote:
-------------------------------------------------------

>
> but it erase all records in the ProcFamClass
> table!
>

You asked it to do that

  delete from ProcFamClass where ProcFamClass.proc_id = proc_id;

where procid = procid always evaluates to true, so this command always deletes all records.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Delete trigger deletes an entire table
1180
March 14, 2012 03:24PM


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.