0
我想在PostgreSQL數據庫中執行以下更新查詢,但它不起作用並給出語法錯誤。PostgreSQL如何使用按位運算符| =
查詢如下
update wl_user set role_bitmask= role_bitmask|=1 where email='[email protected]'
問題似乎是|=
運營商,沒有任何人有知道如何使用| =在PostgreSQL的操作?
以下是錯誤。
[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.