M mscientist33 Active Member Licensed User Oct 3, 2021 #1 I can't find an example of an SQL statement using the "UPDATE" command. This is the page I'm use to using to go by: B4A SQL This is my current SQL: B4X: mSQL.ExecNonQuery2("UPDATE " & cselectedversion & " SET fav=? WHERE id=?", Array As String("1",p.GetView(2).Tag))
I can't find an example of an SQL statement using the "UPDATE" command. This is the page I'm use to using to go by: B4A SQL This is my current SQL: B4X: mSQL.ExecNonQuery2("UPDATE " & cselectedversion & " SET fav=? WHERE id=?", Array As String("1",p.GetView(2).Tag))
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2021 #2 What happens when you run this code? Upvote 0
klaus Expert Licensed User Longtime User Oct 4, 2021 #3 There is a small example in the B4X SQLite database booklet. Upvote 0
M mscientist33 Active Member Licensed User Oct 4, 2021 #4 klaus said: There is a small example in the B4X SQLite database booklet. Click to expand... Problem solved. It was updating but someone pointed out that I was recopying the database at each start over writing the update..... Upvote 0
klaus said: There is a small example in the B4X SQLite database booklet. Click to expand... Problem solved. It was updating but someone pointed out that I was recopying the database at each start over writing the update.....