8/24/2023 0 Comments Sqlite import csv and create table![]() I think these are not accepted because they are invalid CSV. import, produce an error to stderr such as: "adron_reducido_ruc.txt:13718893: unescaped " character". ![]() The import is very slow and noisy because of all the yapping about ignoring an extra field per record.Īnother issue, perhaps explaining your disappointment, is that a great many lines, during the. ![]() But the match is poor because 15 separators are needed for 16 fields. It is indeed using '|' as field separators, so it is very strange to be treating it as CSV.Īnother issue is that the lines have 15 separators, which almost matches the 15 columns you define for table SUNAT. With a few minutes to spare, I downloaded your large text file. Prior to import I perform an ANSI->UTF8 conversion from the text file.Ĭ:sqlite3.exe -csv -init config.cfg CONSULT.db ""ĬREATE TABLE IF NOT EXISTS SUNAT("RUC" INTEGER PRIMARY KEY, "NOMBRE O RAZÓN SOCIAL" TEXT, "ESTADO DEL CONTRIBUYENTE" TEXT, "CONDICIÓN DE DOMICILIO" TEXT, "UBIGEO" TEXT, "TIPO DE VÍA" TEXT, "NOMBRE DE VÍA" TEXT, "CÓDIGO DE ZONA" TEXT, "TIPO DE ZONA" TEXT, "NÚMERO" TEXT, "INTERIOR" TEXT, "LOTE" TEXT, "DEPARTAMENTO" TEXT, "MANZANA" TEXT, "KILÓMETRO" TEXT) Dear, I have a "small" problem doing the import of a txt file with csv mode, the file is just over 13 million records, but the import does not bring all of them to the db, from record 11million approx onwards one that another record is left out, thus until completing almost 300,000 records, the text file is in this format:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |