I have user table
ID Name
1 Michael
2 Jimmy
if i do a query select * from user where name = ‘michael’; then it returns row 1, is it possible to do a query with a part of a name, I mean
select * from user where name = 'mic';
its like the name starts with mic, how can i do a query to return michael row in MySql
You need the LIKE clause and add an appropriate wildcard.
Wildcards
Pattern matching