question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sqlite delete query not working

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
brentvatnecommented, Dec 10, 2018

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

0reactions
esamelsoncommented, Nov 2, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found