SQL - how to select words with certain values at the end of word

前端 未结 5 830
故里飘歌
故里飘歌 2021-01-04 10:02

iam new to sql and i would like to know how can I find the letter or symbol at the end of value in column called Name? E.g if i would find something i will

5条回答
  •  长情又很酷
    2021-01-04 10:47

    You have to remove the last %, so it will only select words ending with es.

    select * from table where Name like '%es'
    

提交回复
热议问题