Thanks,
Yes, That is what i want but it seems like it didn't work.
For example the password is 'password'. I ran the update statement below and do 
the AES_DECRYPT the password is null instead of 'password'.
Any idea?
JP


________________________________
From: Igor Tandetnik <itandet...@mvps.org>
To: sqlite-users@sqlite.org
Sent: Wednesday, October 19, 2011 5:35 PM
Subject: Re: [sqlite] sql statement to update the data in the table

On 10/19/2011 7:23 PM, Joanne Pham wrote:
> update vpn set password = AES_ENCRYPT((select password from vpn) , 
> "abcdffffdsfddafdasfddasd").

I suspect you want

update vpn set password = AES_ENCRYPT(password, 'abcdffffdsfddafdasfddasd');

-- Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to