I want to select a blob col from one table, base64 encode it and insert it into another tables. Is there any way to do this without round tripping the data out of the DB and
insert into encrypt values('raju',aes_encrypt('kumar','key'))
select *,cast(aes_decrypt(password,'key') as char(40)) from encrypt where username='raju';