Is there any technique to do in postgresql 9.3 so that it start returning 1 and 0 instead of “t” and “f” for boolean type
问题 Actually i am migrating my ms sql server into postgresql 9.3 and we were using int data type to store 1 and 0 for boolean values but in postgresql9.3 it is not possible. what did i get when i did a little research on datatype of postgresql: In Postgresql:- For Integer type datatype:- insert into ask(aint) values(1) working insert into ask(aint) values('1') working insert into ask(aint) values(true) not working select * from ask where aint=1; working select * from ask where aint='1'; working