Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored procedures?

Status
Not open for further replies.

comadreja

Programmer
Apr 14, 2003
8
ES
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top