Einzelnen Beitrag anzeigen

mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.858 Beiträge
 
Delphi 11 Alexandria
 
#3

Re: [MySQL] Stored Procedures in die DB per SQL-Script?

  Alt 28. Apr 2006, 06:36
Versuchs mal so:
SQL-Code:
DELIMITER $$ ;

DROP PROCEDURE IF EXISTS `deletelizenz' $$
CREATE PROCEDURE `deletelizenz`(INID INT(6))
BEGIN
DELETE FROM pim_pb_liz WHERE id=INID;
DELETE FROM pim_pb_liz_fl WHERE lizid=INID;
DELETE FROM pim_pb_liz_zr WHERE lizid=INID;
END; $$

DELIMITER ; $$
Markus Kinzler
  Mit Zitat antworten Zitat