Home Forums Article Discussions Article Discussions by Author Discuss content posted by Atif Sheikh Parsing / breaking character separated values in a table in one query RE: Parsing / breaking character separated values in a table in one query
Douglas Osborne-456728
SSCommitted
Points: 1569
More actions
July 20, 2010 at 6:27 am
#1195448
Atif,
My point was SUBSTRING is 1 based, not 0 based.
DECLARE
@String VARCHAR(50)
SET @String = 'Doug'
PRINT SUBSTRING( @String, 1, 3 )
PRINT SUBSTRING( @String, 0, 3 )
It won't error out - but it will not work correctly either.
Doug