From sqlite-users Mon Dec 15 05:21:29 2008 From: John Stanton Date: Mon, 15 Dec 2008 05:21:29 +0000 To: sqlite-users Subject: Re: [sqlite] Adding data with periods Message-Id: <4945E959.80205 () viacognis ! com> X-MARC-Message: https://marc.info/?l=sqlite-users&m=122931851823023 Note that literal delimiters in SQL are single quotes, e.g. 'This is an SQL literal'. It is good practice with Sqlite to use bound variables. You avoid possible SQL injection attacks and limit sensitivity to data content. 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 > > Thanks ... > deech > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users