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 1 (of 1 total)

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