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

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

    You're currently matching on: ..where 'Name' like '%es%'.

    Which equates to anything, then 'es' then anything else.

    Removing the last % changes the where to anything then 'es'.

    in short.. you need ..where 'Name' like '%es'

提交回复
热议问题