On Fri, Feb 28, 2014 at 8:00 AM, Dominique Devienne wrote:
> Ran into this [datatype mismatch] error, which surprised me since I
> thought SQLite's
> dynamic typing allowed any value type to be stored in any column.
>
The exception to that rule is an INTEGER PRIMARY KEY
SQLite Database" <sqlite-users@sqlite.org>
> >Subject: Re: [sqlite] Error: datatype mismatch
> >Message-ID: <e490d863a81fdc4cbf3bf970f3c0b...@mail.dessus.com>
> >Content-Type: text/plain; charset="us-ascii"
> >
> >
> >sqlite> CREA
t;From: "Keith Medcalf" <kmedc...@dessus.com>
>To: "General Discussion of SQLite Database" <sqlite-users@sqlite.org>
>Subject: Re: [sqlite] Error: datatype mismatch
>Message-ID: <e490d863a81fdc4cbf3bf970f3c0b...@mail.dessus.com>
>Content-Type: text/plain;
sqlite> CREATE TABLE webinfo (inx INTEGER PRIMARY KEY ,website varchar(50)
UNIQUE,username varchar(50),password varchar(50));
sqlite> .mode csv
sqlite> .import kk.txt webinfo
sqlite> select * from webinfo;
0,nytime,gf,a1..7
1,bbc,1982,tbth432
2,oknic,y...@sohu.com,bbaa1122
sqlite>
Did you
On Mon, Jul 16, 2012 at 3:30 AM, YAN HONG YE wrote:
> the table is:
> CREATE TABLE webinfo (inx INTEGER PRIMARY KEY ,website varchar(50)
> UNIQUE,userna
> me varchar(50),password varchar(50));
>
> and the txt file kk.txt is utf8:
> 0,nytime,gf,a1..7
> 1,bbc,1982,tbth432
>
5 matches
Mail list logo