MySQL Forums
Forum List  »  Stored Procedures

Re: Loop Through Cursor
Posted by: Peter Brawley
Date: November 30, 2015 11:46PM

It's SQL, think sets not procedures. As RJames suggests, this job might be a lot easier with five simple SQL statements like ...

insert into target_table
select group_concat( col, ";" )
from source_table
where col in('a', ... );

Options: ReplyQuote


Subject
Views
Written By
Posted
2739
November 14, 2015 08:14AM
798
November 30, 2015 08:10PM
Re: Loop Through Cursor
813
November 30, 2015 11:46PM


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.