views:

91

answers:

1

What is the SQL Lite statement for "insert"?

I have tried

insert into table1 values(field1,field2) values (?,?)

but this returns an error in the statement -- how do I do this?

+2  A: 

The correct syntax for the insert statement is here:

INSERT INTO table (column1, [column2, ... ]) VALUES (value1, [value2, ...])

Note that you have put the VALUES keyword before the list of column names.

1800 INFORMATION
thank you its working..
If it works, you may want to accept the answer.
Brad Larson