Answer the question
In order to leave comments, you need to log in
How to make an sql query to select / check for matches from the current one in a string and do concat or update?
Good morning. Please tell me how can I implement this? Let's say find_in_set is looking for matches in a string. Concat combines them, I would go over the loop, but I don’t want to shit code.
Let's say there is a string in the base text1,text2,text3,text4
And there is an array [text1,text2,text3,text5]
How to make a query so that all matches are cut off and a new one is added, in the current example we want the following result:
text1,text2,text3 ,text4,text5
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question