MySQL Forums
Forum List  »  Stored Procedures

Re: INSERT INTO EXEC
Posted by: Roland Bouman
Date: November 16, 2005 04:59AM

This is not supported in mysql.

If your procedures contain only a single select statement, you could try to do it like this:

select concat(
'INSERT INTO '
,<some expression for you table>
,' (col1,col2,...)'
,routine_definition
)
into @mystmt
from information_schema.routines
where <some intelligent where expression>
;

prepare mystmt from @mystmt;
execute mystmt;
deallocate prepare mystmt;

This would at least save you the work of rebuilding the procedures.

Options: ReplyQuote


Subject
Views
Written By
Posted
2958
November 16, 2005 03:39AM
Re: INSERT INTO EXEC
1789
November 16, 2005 04:59AM
1823
November 17, 2005 02:34AM
1895
November 17, 2005 03:05AM
1809
November 18, 2005 02:39AM
2002
November 18, 2005 06:08AM
1999
November 21, 2005 08:01AM
1777
November 21, 2005 08:14AM
1925
November 18, 2005 02:53AM
2008
November 22, 2005 01:59AM
1842
November 22, 2005 02:20AM
2131
November 22, 2005 06:21PM


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.