SQL Boolean¶
Casting text to boolean
t,true,y,yes,on,1f,false,n,no,off,0
select 'a'::BOOLEAN;
-- ERROR: invalid input syntax for type boolean: "a"
-- LINE 1: select 'a'::BOOLEAN;
Last update:
2023-04-24
Casting text to boolean
t, true, y, yes, on, 1f, false, n, no, off, 0select 'a'::BOOLEAN;
-- ERROR: invalid input syntax for type boolean: "a"
-- LINE 1: select 'a'::BOOLEAN;