Re: copy stored procedures
>in this way, the SPs are effectively copied over to targetSchema..
That is a solution.
Also, in script you could do sometning like this -
SET @source_db = 'database1';
SET @target_db = 'database2';
SELECT * FROM mysql.proc WHERE db = @source_db
INTO
OUTFILE 'proc.csv'
FIELDS TERMINATED BY ';' LINES TERMINATED BY '\r\n';
LOAD DATA INFILE 'proc.csv' INTO TABLE mysql.proc FIELDS TERMINATED BY ';' LINES TERMINATED BY '\r\n' SET db = @target_db;
Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/
Edited 1 time(s). Last edit at 06/10/2010 07:38AM by Devart Team.
Subject
Views
Written By
Posted
21799
June 04, 2010 08:21AM
3073
June 04, 2010 08:55AM
5342
June 07, 2010 02:35AM
5023
June 09, 2010 10:12AM
Re: copy stored procedures
3687
June 10, 2010 06:29AM
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.