Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when using changing mode to csv

Tags:

sqlite

I am trying to import data from a csv file. According to this , I should use .mode csv first. But when I enter that command, I get this error:

mode should be on of: column html insert line list

Why is this so ? Google didn't help me much and I'm new to this.

like image 500
LockStock Avatar asked Jan 27 '16 23:01

LockStock


1 Answers

You had probably entered on the SQLite shell using sqlite. Try to use sqlite3 to enter on the shell. There you will have the .mode csv.

like image 139
Eduardo Avatar answered Nov 04 '22 10:11

Eduardo