select REVERSE(SUBSTRING(REVERSE(test),0,CHARINDEX('-',REVERSE(test)))) from tmp 备注:其中reverse代表反转的意思 相关文章: 2021-04-16 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2021-11-23