Postgresql获取指定字符后的末尾字符串

需求:妍妍-肉肉,需要获取-后面的肉肉

select substr('妍妍-肉肉',length(substr(reverse('妍妍-肉肉'),position('-' in reverse('妍妍-肉肉'))))+1)
输出:肉肉

可以看下这位GG写的,但是我的需求不是这样,点击前往

posted @ 2023-02-28 18:34  妍妍叫我肉肉  阅读(37)  评论(0)    收藏  举报