Guest User

Untitled

a guest
Oct 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Id Code
  2. 1 TXT.yut.get
  3. 2 yep.no
  4. 3 gT.YU.iop
  5.  
  6. Id Code
  7. 1 txt
  8. 2 yep
  9. 3 gt
  10.  
  11. Update table_A
  12. SET Code=lower(SUBSTRING(Code, 1, CHARINDEX('.',Code) - 1))
  13.  
  14. UPDATE table_A
  15. SET Code = LOWER(SUBSTRING(Code, 1, CHARINDEX('.',Code) - 1))
  16. WHERE Code like '%.%';
Add Comment
Please, Sign In to add comment