Encrypt password in insert statement in postgresql throws an error (Need to add explicit type cast)
问题 New to postgresql. It might be very simple; but am not getting it. I've this in mysql: insert into APP_USERS VALUES (1, 'admin', 'adminemailid','', 'System', 'Administrator', 'SysAdmin', 'CompanyName', sha('password123'), 'ADMIN', 2,'SCREEN',0); After referring postgresql documentations on password encryption/hashing and various similar questions on Stackoverflow; I tried it's equivalent in postgresql as: insert into APP_USERS VALUES (1, 'admin', 'adminemailid','', 'System', 'Administrator',