Re: [sqlite] sqlite query with c++ variable

2010-07-09 Thread Eric Smith
smengl90 wrote: > Hi, I want to compose a query that will use a c++ variable. For example I > have: > > int i= 5; > char * query = "SELECT * from userInfo WHERE count<'i'". > > The syntax does not work. How do I do that? I think your primary problem is lack of experience in C++. I strongly re

Re: [sqlite] sqlite query with c++ variable

2010-07-09 Thread Sam Carleton
On Fri, Jul 9, 2010 at 2:48 PM, smengl90 wrote: > > Hi, I want to compose a query that will use a c++ variable. For example I > have: > > int i= 5; > char * query = "SELECT * from userInfo WHERE count<'i'". > > The syntax does not work. How do I do that? smengl90, You are asking a question that

[sqlite] sqlite query with c++ variable

2010-07-09 Thread smengl90
Hi, I want to compose a query that will use a c++ variable. For example I have: int i= 5; char * query = "SELECT * from userInfo WHERE count<'i'". The syntax does not work. How do I do that? Thanks -- View this message in context: http://old.nabble.com/sqlite-query-with-c%2B%2B-variable-tp29

[sqlite] sqlite query with c

2010-07-09 Thread smengl90
-- View this message in context: http://old.nabble.com/sqlite-query-with-c-tp29120975p29120975.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/