Skip to content
Advertisement

SQL, like, after characters

It’s possible to do a LIKE SQL after some characters?

I wanted “LIKE” sql after “:” with ” A” So, REGEX like should be return only the first and third sentence. For the fourth sentence, i added ” ANSWER” should not itself return because the regex is ” A” and not ” A%”

Do you have an idea?

Advertisement

Answer

Simply include the colon in your LIKE expression.

or, adjust your text slightly:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement