Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Encrypting varchar

$
0
0
Hi,
I am on DB2 Version 9.7. I create a table with below definition:

db2 "create table tvar2(name varchar(10))"

and then I try to insert into the above table using below command:

db2 "insert into tvar2 values(encrypt('a'))"

which throws below error:
SQL0433N Value " ~" is too long. SQLSTATE=22001

Why is it not allowing me to insert data into encrypted form?

Viewing all articles
Browse latest Browse all 13329

Trending Articles