Reputation: 125
i want to display all the names that start with S. so i tried writing this:
select
*
from
User
where
name = 'S%';
0 rows returned.
Upvotes: 0
Views: 211
Reputation: 1127
select
*
from
User
where
name like 'S%';
If you want to read up on how wildcards work: http://www.w3schools.com/sql/sql_wildcards.asp
Upvotes: 1