Guest User

Untitled

a guest
Mar 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. select my_number
  2. , cast(concat(substr(my_number,2,5), '00000') AS UNSIGNED INTEGER)
  3. , cast( my_number, AS UNSIGNED INTEGER) +
  4. cast(concat(substr(my_number,2,5), '00000') AS UNSIGNED INTEGER)
  5. from my_table
  6.  
  7. select cast(col as bigint) + cast(substr(col, 2, 5) || '00000' as bigint)
Add Comment
Please, Sign In to add comment