问题
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.
回答1:
Use the like
operator
select *
from tablename
where lastname like '%kumar%'
来源:https://stackoverflow.com/questions/55862588/how-to-retrieve-the-values-that-contains-a-part-of-value-in-the-column