Remove single quotes from a string

  • hi ,
    I have leading single quotes in a string . I tried to remove using "replace" but it is not working

    String = '00000000000

    can any one pleas help me with this?

  • DECLARE @str nvarchar(20)='''00000000000';
    SELECT @Str String, Replace(@str, '''', '') ReplacedString;

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply