I have table tbl_mak
in SQL Server which contain's the following data:
Table:
CREATE TABLE tbl_mak
(
col_bit bit
);
insert into tbl_mak values(1);
insert into tbl_mak values(0);
After exporting into Flat File (.txt) i got the following value's:
col_bit
True
False
And I have the following table in PostgreSQL 9.5:
CREATE TABLE tbl_mak
(
col_bit bit
);
Now i want to import the exported data from SQL Server into PostgreSQL.
Script:
\COPY tbl_mak FROM 'D:\mak.txt'
Getting an error:
ERROR: bit string length 5 does not match type bit(1)