I want to execute the following update query at PostgreSQL db but it does not work and gives syntax error.
Query as follows
update wl_user set role_bitmask= role_bitmask|=1 where email='faisal@gmail.com'
Problem seems to be with |=
operator, does anybody have idea how to use |= operator in PostgreSQL?
Following is the error.
[Err] ERROR: operator does not exist: integer |= integer LINE 1: ...pdate wl_user set role_bitmask=role_bitmask|=1 where ... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.