1

I want to search for people whose name start with letter A using LIKE query but I'm getting errors. What query should I type in order to get results based on people whose name start with a particular letter or not with that letter?

1
  • What is the error? What is the query you are trying? Commented Aug 26, 2016 at 19:52

1 Answer 1

3

Get result where name starts with a specific letter

SELECT * FROM table WHERE name LIKE 'A%'

Get result where name DOES NOT start with a specific letter

SELECT * FROM table WHERE name NOT LIKE 'A%'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.