MySQL Forums
Forum List  »  Triggers

Re: pre_insert trigger not working
Posted by: Todd Gould
Date: June 06, 2019 03:22PM

The insert statement itself does NOT specify any id value. Therefore, I am hopeful that the following stmt from the pre insert trigger would create a new UUID and assign it to the id column.

SET = ma.uuid_to_bin(UUID());

Options: ReplyQuote

Written By
June 06, 2019 01:03PM
Re: pre_insert trigger not working
June 06, 2019 03:22PM

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.