1. 程式人生 > >sqlserver 查詢某個字元在字串中第N次出現的位置

sqlserver 查詢某個字元在字串中第N次出現的位置

select dbo.fn_find('A',@str,1) as one, dbo.fn_find('A',@str,2) as two, dbo.fn_find('A',@str,3) as three, dbo.fn_find('A',@str,4) as four