代码改变世界

SQLSERVER类似于lastindexof的语句

2021-01-11 11:28  NO.27  阅读(332)  评论(0编辑  收藏  举报
select REVERSE(SUBSTRING(REVERSE(test),0,CHARINDEX('-',REVERSE(test)))) from tmp

备注:其中reverse代表反转的意思