Register SQL does not erase

carbonsystem

New Member
Licensed User
Longtime User
Expensive Gentlemen I am excluding a register in SQL lite using the following line:

SQLFUNC.BeginTransaction
SQLFUNC.ExecQuery("DELETE FROM funcionarios WHERE codigo = '" & codigofuncionario & "'")
SQLFUNC.TransactionSuccessful
SQLFUNC.EndTransaction


Error is not presented, however the register remains in the database. What it can be? What I must make to bring up to date the database after the exclusion?
 

mc73

Well-Known Member
Licensed User
Longtime User
I think you should use
B4X:
SQLFUNC.ExecNonQuery("DELETE FROM funcionarios WHERE codigo = " & "'" & codigofuncionario & "'")
 
Upvote 0
Top