I have made stored procedures in Oracle...but need to export them to mysql. I have searched on google but cant figure out the syntax.
Here is the oracle procedure:
CREATE OR REPLACE procedure delgroup
(g_id IN number)
IS
BEGIN
DELETE FROM grouptable WHERE GROUP_ID=g_id;
COMMIT;
END;
I jus basically want to delete the group from the group table..depending on which group id (the arguement) the user types in.
How would i do this exact same procedure in mysql?
Please some assistance guys