Hi, I want to do a delete using SQLite and I would like the query not to be executed if the where field does not exist. Is this possible? Here is an example of my query:
delete from SANCION_DETALLE where SANCION_DETALLE.SANCION = 47
(This query is executed even if there is no sanction 47 in my table)
Thanks in advance.
If you're working in Java, try saving the records you find in an array, and then put in the WHERE condition only the elements of that array. Try this: