MySQL Forums
Forum List  »  Microsoft SQL Server

Execute an STRING as a query
Posted by: Chagh
Date: May 31, 2005 04:59AM

hi all,

how can i execute a STRING as a query in MuSQL?
there is a way to do this in SQLServer 2000, there we can use EXEC(STRING)
and the string will be executed.

Additional Notes: i need this because i've got a select statement in an stored procedure that uses an ORDER BY clause at the end of it, and orders the result set by a given input variable.(this variable comes after ORDER BY clause so i can not execute the query itself, and i should make a string from the select statement and input variable and then exec it)

Thanks in advance
Chagh

Options: ReplyQuote


Subject
Written By
Posted
Execute an STRING as a query
May 31, 2005 04:59AM
June 01, 2005 01:21AM


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.