-1

I have a table like this :

     |----------------------------|
     |  CardCorporateName         |
     |----------------------------|
     | ~$%/*dfgdggf/*(            |
     |---------------------       |
     | ^^&@~`58964sdhfdk-+*/-=-0  |
     |----------------------------|

I need to remove the special character from the column CardCorporateName and my Output should be like this :

   |----------------------------|
   |  CardCorporateName         |
   |----------------------------|
   | dfgdggf                    |
   |----------------------------|
   | 58964sdhfdk                |
   |----------------------------|

Is there any method to remove the special character from the column using recursive CTE method?

DeadCat
  • 182
  • 1
  • 14

1 Answers1

-1
SELECT REPLACE(REPLACE('~$%/*dfgdggf/*(', '~$%/*', ''),'/*(','')

SELECT REPLACE(REPLACE('^^&@~`58964sdhfdk-+*/-=-0','^^&@~`',''),'-+*/-=-0','')
Abdul Rasheed
  • 6,486
  • 4
  • 32
  • 48
Kalirajan
  • 42
  • 8