我需要将值1分配给bit类型的变量。
示例:
create or replace function test()
returns void as
$Body$
Declare
var1 bit :=0;
Begin
....
....
var1 := 1;
....
....
end;
$Body$
language plpgsql;
错误:
ERROR: operator does not exist: bit = integer