I implementing stored procedure in mysql for convenient inserting in many-to-many intermediate table. My table have two column: chat_id and participant_id.
I have an api method, that takes chat_id and string with participant_ids separated by commas like "add_participants?chat_id=1&participant_ids=1,2,3"
I want stored procedure that can deal with this. Think this is very generic problem in web. But I cant figure out syntax, that will produce me this by parameters chat_id='1' andparticipant_ids='1,2,3'
