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

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

    You can also use REGEX

    select distinct city from station where city REGEXP '[aeiou]$';
    

    Resources: To Know more about REGEXP

提交回复
热议问题