Hi, I would like to add a function to my MySQL which can be called as a command, something like this:
BEGIN;
INSERT INTO table1 VALUES (...);
INSERT INTO table2 VALUES (...);
DELETE FROM table1, table2 WHERE ...;
GET_UPDATE();
COMMIT;
where GET_UPDATE is my function. Anybody can help me and teach me how to do it?
Thank you very much!
BEGIN;
INSERT INTO table1 VALUES (...);
INSERT INTO table2 VALUES (...);
DELETE FROM table1, table2 WHERE ...;
GET_UPDATE();
COMMIT;
where GET_UPDATE is my function. Anybody can help me and teach me how to do it?
Thank you very much!