Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

$cordovaSQLite delete syntax

$
0
0

@Harilall wrote:

Hi guys, I am trying to delete a row of data from my SQLite table, I have been using the following syntax. NB. itemIndex is a passed parameter into a function where this code is called

$cordovaSQLite.execute(db, 'delete from expenses where id = ?', [itemIndex]);

I've put the query into a separate variable

var query = "delete from expenses where id = ?";

and then ran it like so

$cordovaSQLite.execute(db, query, [itemIndex]);

still no luck, any advise

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>