Suppose I have a column lastName and I have the data as
kumar yadav kumar shah raghu. kumar
Now I want to write a SQL query that to get the values whose last name contains kumar.
Use the like operator
like
select * from tablename where lastname like '%kumar%'
2.1m questions
2.1m answers
60 comments
57.0k users