If I understand your question, the answer is NO. There is NO function
like sqlite3_insert_data_into_table(TableName, Data, FieldName). The
SQL engine responsible for reading and writing data from and to tables
only responds to SQL queries passed to it via functions like sqlite3_exec().
For multiple INSERTions you can prepare a parameterized SQL query using
sqlite3_prepare(). The query would look something like "INSERT INTO
my_table (FirstField, SecondField) VALUES (:FirstField, :SecondField)".
After preparing the query, the parameters (FirstField, SecondField) can
be accessed individually via a simple function: sqlite3_bind_...()
Steve.
On 1/13/2012 1:29 AM, bhaskarReddy wrote:
Hi friends,
I check all the C APIs which are provided by sqlite. I can able
to write data to a table, using sqlite3_exec() function.
But i need a C API that will write data into table, i.e., sqlite3_exec().
Ex: if i give "database name", table name and values to that
function, the particular function will enter the record of values into that
table.
Is there any C API like that in SQlite.
Regards,
Bhaskar
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users