Hi
I am trying to insert 3 edittext values to a db with auto increment id.
The code is:
Thanks
Vidal
I am trying to insert 3 edittext values to a db with auto increment id.
The code is:
B4X:
SQL1.Initialize(File.DirInternal,"sql_list.sql", True) ' runs ok
SQL1.ExecNonQuery("CREATE TABLE sql_list (_id INTEGER AUTO_INCREMENT PRIMARY KEY, name TEXT , mail TEXT, phone INTEGER)") 'runs OK
SQL1.ExecNonQuery("INSERT INTO sql_list (name,mail,phone) VALUES( 'TestName'', '1@test.com', 55511234)") ' runs OK.
SQL1.ExecNonQuery2("INSERT INTO sql_list VALUES (name,mail,phone)", Array As Object (edittext1.Text, edittext2.Text, edittext3.Text))
'DO NOT RUN>>>
'SQLITE EXCEPTION: NO SUCK COLUMN: name: , WHILE COMPILING....
Thanks
Vidal