MySQL Forums
Forum List  »  Stored Procedures

executing string selects in stored procedure
Posted by: D T
Date: November 29, 2005 10:31AM

I am used to writing stored procedures in microsoft sql server, where it is possible to write

declare sqlStr varchar(100);
set sqlStr = "select * from tablename";

execute (sqlStr)

is it possible to do this in mysql?

i need to write something along the lines of

if (a is not null) then
set sqlSTr = sqlSTr + parameter value
end if

thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
executing string selects in stored procedure
2048
D T
November 29, 2005 10:31AM


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.