I have table column which holds CSV values. eg: 2,3,4,1,13
I want to find specific string from the CSV and return the row matching exact search string from csv.
Table:
tbl_A(ID,name,Csv)
ID name CSV
1 ABC 1,2,13,15
2 PQR 1,4,3,5
@SearchSting=13
Output required:
ID name CSV
1 ABC 1,2,13,15
select * from tbl_A where csv like '%@SearchSting%'
This will give both rows. :(
Help appreciated!