How to search for names starting with A in MySQL?

My question is, how can we use SELECT to find a name that starts with "A" in a MySQL table? thank

+3
source share
6 answers
SELECT * FROM table_name WHERE columnname LIKE 'A%'
+8
source

MySQL Docs

... LIKE 'A%'

(the first part of the request should be easy for you)

+5
source

LIKE, :

SELECT lastName FROM yourTable WHERE lastName LIKE 'A%'
+4
SELECT name FROM <tablename> WHERE name like "A%"
+2

LIKE. % .

SELECT * FROM table WHERE column like 'A%';
+2

http://www.w3schools.com/SQl/sql_wildcards.asp

SELECT * FROM Persons
WHERE Name LIKE 'A%'
+2

Source: https://habr.com/ru/post/1729205/


All Articles