Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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))))
 
PREVIOUS NEXT
Tagged: #reading #left #string #find #special #characters #sql
ADD COMMENT
Topic
Name
8+2 =