Here is my code to encrypt the column:
UPDATE users
SET (userid, modifieddate) =
(
PGP_SYM_ENCRYPT('0', 'AES_KEY'),
PGP_SYM_ENCRYPT('2018-06-19 08:40:23', 'AES_KEY')
)
WHERE id='3';
but its throwing error:
column "userid" is of type integer but expression is of type byte