I have a homework assignment where I have to find all the fields in a table containing 2 a's in them. I have been searching for hours. I am convinced I have to use wildcards but I continue to get fields containing more than 2 fie开发者_JAVA百科lds which is no acceptable. Please Help!!!
You can use RLIKE:
WHERE my_field RLIKE "a{2}"
精彩评论