From sqlite-users Mon Dec 15 05:14:59 2008 From: "P Kishor" Date: Mon, 15 Dec 2008 05:14:59 +0000 To: sqlite-users Subject: Re: [sqlite] Adding data with periods Message-Id: X-MARC-Message: https://marc.info/?l=sqlite-users&m=122931811022732 On 12/14/08, aditya siram wrote: > Hi all, > I'm having trouble adding data with period characters in it. I tries to > escape the period with a `'` but that didn' t seem to work. Here is an > example interaction: > > sqlite> create table test_table ("Contents" varchar); > sqlite> insert into test_table "hello . world"; > SQL error: near ""hello . world"": syntax error > sqlite> insert into test_table "hello '. world"; > SQL error: near ""hello '. world"": syntax error > many errors in the above. The correct syntax would be sqlite> INSERT INTO test_table VALUES ('hello . world'); note the keyword VALUES, and the text string delimited with single quotes, not double quotes. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users