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: Reply• Quote


Subject
Views
Written By
Posted
2405
August 25, 2016 03:09PM
1021
August 25, 2016 06:35PM
1236
August 25, 2016 10:06PM
1017
August 26, 2016 08:48AM
1202
August 26, 2016 02:51PM
Re: Triggers question!
1172
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.