Guest User

Untitled

a guest
Dec 11th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. 1)To Use Replace
  2.  
  3. select replace(coName,'Char to Repalce','Char to Replace with')
  4.  
  5. 2)Relace the leading zeros of text
  6. SELECT REPLACE(LTRIM(REPLACE('094434580980','0',' ')),' ','0') FROM table1
  7.  
  8. 3)Replace Trailing zeros of the text
  9. SELECT REPLACE(RTRIM(REPLACE('094434580980','0',' ')),' ','0') FROM table1
Add Comment
Please, Sign In to add comment