MySQL Forums
Forum List  »  Triggers

How to create trigger use JDBC driver?
Posted by: toral sun
Date: August 23, 2006 01:54AM

Hi!
I want to dynamic create trigger in my java project.
my create trigger sql likes

DELIMITER |
CREATE TRIGGER tri_a
BEFORE INSERT ON a
FOR EACH ROW
BEGIN
insert into b values(NEW.name,NEW.age);
END;
DELIMITER ;

it works on command line,
but i don't konw how to excute this sql use jdbc driver.
Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
How to create trigger use JDBC driver?
4482
August 23, 2006 01:54AM


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.