Re: How to convert oracle scripts to mysql
Hi Peter,
Thank you for the reply.
The code you have provided is working for 'BEFORE' inserting the recording into the table. It is not working for 'AFTER' inserting the record into the table.
Below is the code
DELIMITER $$
CREATE TRIGGER ecidb.HASHPASSWORD_PARENT BEFORE INSERT ON ecidb.employee
FOR EACH ROW
BEGIN
SET NEW.password = md5(NEW.password);
END;
It is working fine
Regards,
Lokesh
Subject
Views
Written By
Posted
6851
April 27, 2012 03:21AM
2645
April 27, 2012 03:22PM
2306
May 02, 2012 06:02AM
2123
May 02, 2012 08:27PM
Re: How to convert oracle scripts to mysql
2026
May 03, 2012 04:31AM
1990
May 03, 2012 10:13PM
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.