It will be very cool if someone provides me a little help in mysql.
I have a table with 1 billion records in which one column has a comma separated value.
I have comma separated values โโfor search.
I want to select those rows that have any value in this column, separated by commas, from this string value.
for example, Table A contains a comma separated column as follows: -

and I have a line that has values โโseparated by a comma "79, 62, 70, 107".
The result will be line number 1,2,3,5,7,8,9,10 (Image mentioned.)
I did this with regex, but it takes too much time, so I want to avoid this for optimization purposes.
source share