MySQL Forums
Forum List  »  Newbie

Re: select where column = @variable
Posted by: Jan Stembera
Date: May 16, 2014 10:08AM

I just wanted to add that this also works, HOWEVER it never cycles through the entire cursor fetch:


SET @SQL1 := concat('select count(*) into @sql_found FROM state_data where sql_handle =''',@digest,'''');
PREPARE stmt FROM @SQl1;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;

Options: ReplyQuote


Subject
Written By
Posted
Re: select where column = @variable
May 16, 2014 10:08AM


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.