which is the best way to separate a string separated by comma and take each single value? example
@variable = john,emma,walter, ... , dallas,
then take the single value like...
john
emma
walter
...
dallas
I need each value to dynamically create a select statement like:
select * from tableName where john = ... and emma = ... //etc...
Thank you all
Solution How to split a comma-separated value to columns is different because it spit into column... i need to use each value for a select/where statement...