Sqlite error- INSERT failed: datatype mismatch

question

sqlite3 uses the .import command to import the input and the error-INSERT failed: datatype mismatch occurs

reason

The default delimiter of the file field is "|", and the .csv file converted from excel defaults to a comma, which results in an error in file parsing and "data type mismatch"

solve

Modify the separator before the .import command - .separator ","

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324929705&siteId=291194637