In a MySQL database, I have a string '0001110011011110'
I'd like to return the number 4, to indicate the greatest number of consecutive ones in string.
Closest SO I could find was an answer to a similar question implemented in c Finding consecutive bit string of 1 or 0
Any help for this MySQL novice would be greatly appreciated :)