I am really new to SQL/similar things and I am trying to make a database iris.db from iris.csv file. I am running the following thing but getting this:
hmi$ ls
data.csv iris.csv xh.pdf z.R z.Rout
hmi$ sqlite3 iris.db
SQLite version 3.7.16.1 2013-03-29 13:44:34
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .mode csv
sqlite> .import "./iris.csv" iris
Error: no such table: iris
sqlite>
Could anyone say, why it's saying no such table?
You need to create the table IRIS
with something like this first:
CREATE TABLE iris (SomeNum INTEGER, Description TEXT);
before you do .import
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.