I had created two table in my database, In both table I am inserting value at the same time, now what I want to do is that, I want to insert record in second table, but the
Use the following query
INSERT OR REPLACE INTO table_name (idColoumn, categoryColumn) VALUES (?, ?)
It will add new row if it does not exist or update row if it exists. hope this will help you.