String manipulation

  • Hi all,

       I have an address column in database, and I need to output this address column to only string without ',' and '#'. 

    How to use replace (address,.....) to eliminate 2 characters?

    Thank you.

  • replace(replace(@str,',',''),'#','')

    Tim Wilkinson

    "If it doesn't work in practice, you're using the wrong theory"
    - Immanuel Kant

  • SELECT replace(replace(Address,',',''),'#','') AS Address FROM <TABLE_NAME>

     

    ------------
    Prakash Sawant

    http://psawant.blogspot.com

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

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