SQLite INSERT command
Posted: Fri Jul 17, 2009 11:22 pm
I'm using revExecuteSQL to issue an SQL INSERT command to add a new entry to a table in an SQLite database. the command is:
revExecuteSQL gDBID, tSQL
gDBID contains 1
tSQL contains:
INSERT INTO Products (ProdName,Active,Revenue,Track,Ship,SalesCategory,ProdPrice,ChargeExpenses,ProdType) VALUES ("New CD",1,1,1,0,"Anril","15",0,"CD")
I display the value of "it" after the revExecuteSQL is executed and it is blank.
The new record is not added to the table. The above SQL does not include the field that is the primary key for the table but I've tried including that with a value of NULL and same result.
Hoping there is an SQL expert out there can tell me what I'm doing wrong!
Thanks,
Pete
revExecuteSQL gDBID, tSQL
gDBID contains 1
tSQL contains:
INSERT INTO Products (ProdName,Active,Revenue,Track,Ship,SalesCategory,ProdPrice,ChargeExpenses,ProdType) VALUES ("New CD",1,1,1,0,"Anril","15",0,"CD")
I display the value of "it" after the revExecuteSQL is executed and it is blank.
The new record is not added to the table. The above SQL does not include the field that is the primary key for the table but I've tried including that with a value of NULL and same result.
Hoping there is an SQL expert out there can tell me what I'm doing wrong!
Thanks,
Pete