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

前端 未结 5 786
故里飘歌
故里飘歌 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:39

    The query ..where 'Name' like '%es' will find columns where name ends with "ES". But if we need to find column where name ends with either "E" or "S", the query would be

    .. where 'Name' LIKE '%[ES]'

提交回复
热议问题