A very basic (read: noob) sqlite question
Posted: Fri Feb 20, 2009 2:03 am
Yes I am a complete db noob.
Am trying to use the sqlite db functions in PB.
I have a sqlite db with table created.
How do I put the data which is in a string variable into the table?
This works:
CheckDatabaseUpdate(0, "INSERT INTO food (name, weight) VALUES ('apple', '10')")
OK I now have the text 'apple' contained in a string variable say A.s or A$
how do I put A$ into the table?
I can verify what works and doesn't work in the database with the sqlitebrowser application.
Thanks,
Curt
Am trying to use the sqlite db functions in PB.
I have a sqlite db with table created.
How do I put the data which is in a string variable into the table?
This works:
CheckDatabaseUpdate(0, "INSERT INTO food (name, weight) VALUES ('apple', '10')")
OK I now have the text 'apple' contained in a string variable say A.s or A$
how do I put A$ into the table?
I can verify what works and doesn't work in the database with the sqlitebrowser application.
Thanks,
Curt