`

sqlserver indexOf lastIndexOf

阅读更多
//sqlserver  lastIndexOf
select  len(c_attachFilePath)+1-charindex('/',reverse(c_attachFilePath)) from [yjs].dbo.HDZX_QUESTION
   where [c_attachFilePath] is not null


//sqlserver indexOf
  select CHARINDEX('.',c_attachFilePath) from [yjs].dbo.HDZX_QUESTION where [c_attachFilePath] is not null
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics