Closed pawelsalawa closed 6 years ago
Originally created at: Fri Apr 17 09:11:49 2015
Please use English next time.
Your problem is that NR\_SAP has to be unique (because it has UNIQUE constraint), while you are trying to insert the same number twice. That's all.
You can use import CSV and enable "Ignore errors" option, so any rows with not unique data will be skipped.
I also strongly advice you to upgrade your SQLiteStudio to 3.0.5, cause it fixes a major bug #2838, which might delete your database.
(This issue was migrated from the old bug tracker of SQLiteStudio)
Original ID from old bug tracker: 2852 Originally created at: Fri Apr 17 09:11:49 2015 Originally last updated at: Fri Apr 17 09:11:49 2015
OkoÅo trzech tysiÄcy linii, każda wyglÄ da jak ta:
INSERT INTO KLIENCI (NR\_SAP) VALUES (401390);
Zmienia siÄ tylko wartoÅÄ. Jest jakieÅ ograniczenie wynikajÄ ce z iloÅci przetwarzanych linii, bo przemieliÅo tylko pierwszy tysiÄ c. Wobec tego wrzuciÅem kolejne tysiÄ c linii i przy próbie wykonania inserta otrzymujÄ:
[08:59:01] BÅÄ d podczas wykonywania zapytania SQL na bazie 'reklamacje': UNIQUE constraint failed: KLIENCI.NR\_SAP
Å»adna linia nie zostaje przetworzona. Identyczny komunikat otrzymujÄ przy próbie importu pliku CSV wyglÄ dajÄ cego w ten sposób:
1;10001;CASTORAMA POLSKA SP. Z O.O.;WARSZAWA;KRAKOWIAKÃW 78;02-255;(22) 575-31-00
Razem 7 kolumn (ÅÄ cznie z pierwszÄ - ID).
Plugins loaded: SqlFormatterSimplePlugin, PopulateDictionary, ScriptingTcl, RegExpImport, MultiEditorDateTimePlugin, JsonExport, Printing, PopulateRandomText, PopulateRandom, MultiEditorDatePlugin, MultiEditorNumericPlugin, ConfigMigration, XmlExport, MultiEditorTimePlugin, JavaScriptHighlighterPlugin, PdfExport, HtmlExport, PopulateScript, ScriptingQt, CsvExport, SqlEnterpriseFormatter, CsvImport, PopulateSequence, DbSqlite2, ScriptingSql, SqliteHighlighterPlugin, SqlExport, PopulateConstant, DbPluginSqlite3, MultiEditorHexPlugin, MultiEditorTextPlugin, MultiEditorBoolPlugin
Version: 3.0.4
Operating System: Windows 7, 32bit