run create store procedure by poweshell
Posted by: Gautam Sharma
Date: October 21, 2018 11:22AM

I have .sql file which has multiple stored procedure, that run perfectly from mysql workbench and mysql command line tool example : source test.sql

test.sql

DROP procedure IF EXISTS `test`;

DELIMITER $$

CREATE PROCEDURE `test` ()
BEGIN
select * from organisations;
END$$


DELIMITER ;

DROP procedure IF EXISTS `test1`;

DELIMITER $$

CREATE PROCEDURE `test1` ()
BEGIN
select * from organisations;
END$$

DELIMITER ;
I have tried to execute same with powershell, but as i fond powershell doesn't recognized 'DELIMITER' keyword, so unable to run this via powershell.

Do we have any Azure DevOps release pipeline task which can run the test.sql? My requirement is to run the test.sql in Azure DevOps deployment pipleline. Any help Guys !!!

Options: ReplyQuote


Subject
Written By
Posted
run create store procedure by poweshell
October 21, 2018 11:22AM


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.