Quantcast
Channel: Answers for "How To Query A Column For 2 Or More Repeating Characters?"
Viewing all articles
Browse latest Browse all 10

Answer by gangtom

$
0
0
update set numHases = len(replace(col, '#', '# ')) - len(col) This will give you the no. of hashes each cell has. Or to select rows with more than 2 hashes, select * from abc where len(replace(col, '#', '# ')) - len(col) > 2

Viewing all articles
Browse latest Browse all 10

Trending Articles