MySQL Forums
Forum List  »  Triggers

Re: Triggers question!
Posted by: Peter Brawley
Date: August 26, 2016 07:26PM

> It is returning 0 how ever(on master table the ID_CASO value is added perfectly),

Not sure what you mean. It'ss easy to show that an After Insert Trigger can see the new auto_increment value. What exactly is "returning 0"?

> or it gives me a foreign key restriction violated error
> if the tables are related, with a foreign key.

Let's see the results of Show Create Table fish and Show Create Table master_table_ltp.

Options: ReplyQuote


Subject
Views
Written By
Posted
1027
August 25, 2016 03:09PM
435
August 25, 2016 06:35PM
496
August 25, 2016 10:06PM
390
August 26, 2016 08:48AM
487
August 26, 2016 02:51PM
Re: Triggers question!
468
August 26, 2016 07:26PM


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.