hi, I have a question that how can we use SELECT for searching the name which start with 'A' in MySQL table? thanks
why the downvote? Because I didn't write the obvious parts for educational purposes?
Bozho
2010-01-20 09:54:42
+2
A:
Using the LIKE
operator, e.g.:
SELECT lastName FROM yourTable WHERE lastName LIKE 'A%'
T.J. Crowder
2010-01-20 09:50:58
+1
A:
You use the LIKE
command. The %
is a wildcard.
SELECT * FROM table WHERE column like 'A%';
Oli
2010-01-20 09:51:21
+1
A:
http://www.w3schools.com/SQl/sql_wildcards.asp
SELECT * FROM Persons
WHERE Name LIKE 'A%'
Charles Beattie
2010-01-20 09:52:31