Using Wildcard in MYSQL (1 Viewer)

RajaGautam

Registered User.
Local time
Today, 17:02
Joined
Apr 5, 2013
Messages
10
Hi! I want to select persons with a last name that starts with "b" or "s" or "p" from the "Persons" table. Here goes SELECT Statement,

SELECT * FROM Persons WHERE LastName LIKE '[bsp]%'

But MySQL returned an empty result set. How to fix it? :cool:
 

Users who are viewing this thread

Top Bottom