Guest User

Untitled

a guest
May 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. create table tableA
  2. (
  3. id number,
  4. encoded_description clob);
  5.  
  6. insert into tableA
  7. (id, encoded_description)
  8. values
  9. (1, 'Zm9sbG93IHVw');
  10.  
  11. insert into tableA
  12. (id, encoded_description)
  13. values
  14. (2, 'dG8gbWFueSByZWQgZmxhZ3M=');
  15.  
  16. commit;
  17.  
  18. Table A output which contains base64 encoded data in encoded_description field:
  19.  
  20. Table A:
  21.  
  22. ID, encoded_description
  23. 1 Zm9sbG93IHVw
  24. 2 dG8gbWFueSByZWQgZmxhZ3M=
  25.  
  26.  
  27.  
  28. create table tableB
  29. (
  30. id number,
  31. decoded_description clob);
  32.  
  33. Table B: output after conversion
  34.  
  35. ID, Decoded_description
  36. 1 <<Original Text>>
  37. 2 <<Original Text>>
Add Comment
Please, Sign In to add comment