PostgreSQL
 sql >> Teknologi Basis Data >  >> RDS >> PostgreSQL

Kesalahan Wizard Impor dan Ekspor SQL Server saat mengekspor ke PostgreSQL

Masalahnya tampaknya tidak berada di sisi PostgreSQL, jadi Anda mungkin harus mencari alat konversi untuk bug tersebut. Dari psql:

test=# CREATE TABLE import (id int NOT NULL PRIMARY KEY, val1 int, val2 int);
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "import_pkey" for table "import"
CREATE TABLE
test=# COPY import FROM STDIN (FORMAT CSV);
Enter data to be copied followed by a newline.
End with a backslash and a period on a line by itself.
>> 1,,111
>> 2,22,222
>> \.
test=# SELECT * FROM import;
 id | val1 | val2 
----+------+------
  1 |      |  111
  2 |   22 |  222
(2 rows)



  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. Keluarkan ya/tidak sebagai ganti t/f untuk tipe data boolean di PostgreSQL

  2. Kueri Postgres yang berjalan lambat

  3. Cara menginstal PyGreSQL menggunakan Virtualenv di Mac OS Sierra

  4. Perbarui bagian (nomor pesanan) yang merupakan kunci utama di Postgres

  5. Variabel tabel PostgreSQL