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
2955
November 16, 2005 03:39AM
Re: INSERT INTO EXEC
1786
November 16, 2005 04:59AM
1816
November 17, 2005 02:34AM
1893
November 17, 2005 03:05AM
1807
November 18, 2005 02:39AM
1998
November 18, 2005 06:08AM
1996
November 21, 2005 08:01AM
1774
November 21, 2005 08:14AM
1919
November 18, 2005 02:53AM
2005
November 22, 2005 01:59AM
1839
November 22, 2005 02:20AM
2128
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.