sqlite delete query not working
See original GitHub issueHi, I try run this query and its not working, its not throwing error but not deleting row in database.
I checked db file and id is correct.
select and insert queries are working fine, but delete query not works.
here is my code
const db = Expo.SQLite.openDatabase('sample.db')
db.transaction(
(tx) => {
tx.executeSql('delete from tasks where key = ?', [id])
}
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
android sqlite delete query not working - Stack Overflow
The query generated by this code ends like this: DELETE FROM BusTable WHERE BusNum = 012345. The database will interpret this as a...
Read more >Problem with Sqlite DELETE documentation - SQLite Forum
If a DELETE statement has a LIMIT clause, the maximum number of rows that will be deleted is found by evaluating the accompanying...
Read more >SQLite DELETE Statement Step By Step with Examples
This tutorial walks you through the steps of using SQLite DELETE statement to remove one row, multiple rows, and all rows in a...
Read more >[Solved] Delete records from table sqlite - CodeProject
1) The problem you have noticed, which is simple: you delete one row - the top one in your DataGridView - from the...
Read more >How to Create, Delete and Manage Databases - SQLite - Prisma
Learn how to create, destroy, manage, and use databases and tables using SQLite.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

hi can you please create a full reproducible example on https://snack.expo.io/?
also, let me know what operating system and sdk version this is happening with
Hi, it looks like this issue has been resolved so I’m going to close this. Please create a new issue with a full repro case (see here for how to create a solid repro example) if this still happens in any of the currently supported SDK versions.