Link to home
Start Free TrialLog in
Avatar of rmmarsh
rmmarshFlag for United States of America

asked on

SQLITE: What do I need after an INSERT statement?

I have an INSERT statement, followed by a SQLITE3_EXEC, followed by a SELECT statement and another SQLITE3_EXEC.  I'm getting an SQLERROR 21 (SQLITE_MISUSE) on the EXEC for the SELECT statement.

Line 11 (http://monobin.com/__d215dc84d) is giving me the error...

Am I missing something between the two EXECs?  like a COMMIT, or?
Avatar of gheist
gheist
Flag of Belgium image

line 9 should be changed from
L from CardData";

to
L from CardData;";
Avatar of rmmarsh

ASKER

Sorry, that didn't fix anything... still getting the 21.
http://www.sqlite.org/c3ref/bind_blob.html

you need to bind some variable fields in prepared statement
select ... from ... where ?=... and ?= ,,,

etc
Avatar of rmmarsh

ASKER

That particular SELECT statement is like "SELECT * FROM database"... I want all of the rows returned, although there will be only one...
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmmarsh

ASKER

thank you for your time... I appreciate it...