I've got some data in an SQL table that looks like:
5
5,1
5,2
5,1,1
5,1,2
5,3
5,1,1,1

I'd like to know if there's a way to search for rows that contain "one comma", "two commas", etc and store them to an array.