Answers for "sql query find location of string right to left"

SQL
0

reading from right to left from string find first special characters in sql

DECLARE @strvalue varchar(20) = 'SDADH/SDKDS/SD/UIO-123/WEA/456'
SELECT REVERSE(SUBSTRING(REVERSE(@strvalue),0,CHARINDEX ('/',REVERSE(@strvalue))))
Posted by: Guest on November-15-2020

Code answers related to "sql query find location of string right to left"

Code answers related to "SQL"

Browse Popular Code Answers by Language