How do I delete a row from Sqlite using ID where my ID is binary data (GUID)

user1

So I have a Sqlite table [Customers] and a column [CustomerId] which is a Guid but as there is no Guid type in sqlite I have saved it as binary so I thought I could use the statement:

delete from [Customers] where [CustomerId] ='|����8B�����\�'

where |����8B�����\� is my binary representation in my Sqlite explorer, but this returns

(0) Rows Affected

How can I delete a row based on my Id column which is effectively a Guid

CL.

There are two way of using binary data:

    guid = ...
    sql = "DELETE FROM Customers WHERE CustomerId = ?"
    db.execute(sql, [guid])

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I grab SQLite row in UITableView based on ID? (Detailed)

From Dev

How do i pass the ID of a row from my database to a modal dialog?

From Dev

I am new on rails i not sure what is going on my code but I want to filter data from database by searching using id how can i do it

From Dev

How do I find out a specific row ID from a table?

From Dev

Unable to delete row data in my table view from sqlite

From Dev

How do I get my delete button to delete a single row?

From Dev

How do I find all the <li> having data-et-id="A" from <ul> using selectors?

From Dev

delete row id using Contentprovider

From Dev

How do i select row json with the id

From Dev

How do I delete a row when multiple rows have the same id

From Dev

How do I get the tr data-id using JQuery?

From Dev

How do I conduct an analysis by row ID where each row will be resampled (reanalyzed) 10 times before moving on to the next row in R?

From Dev

Delete multiple rows while using the id from the row before

From Dev

How do I get the id from an ObjectID, using Python?

From Dev

How to get the last row Id after insert data into table for SQLite

From Dev

Delete a row javascript using row id

From Dev

Can I do {controller}\{id} with a Guid instead of {controller}\{action}\{id}

From Dev

How do I delete a row in a UITableView where the var is an integer?

From Dev

Python/Pandas: How do I take specific columns from the second row of each ID and place it in new columns on the first row of the ID?

From Dev

Where do I find my Facebook Audience ID?

From Dev

Where do i find my Google Wallet Transaction ID

From Dev

Where do I find my GCM sender ID?

From Dev

Where do i find my Google Wallet Transaction ID

From Dev

Where do I find my Facebook Audience ID?

From Dev

Where do i find Admob Test Device ID for my iPhone?

From Dev

How to get last inserted row id from sqlite in phonegap android

From Dev

How to get last inserted row id from sqlite in phonegap android

From Dev

Android SQLite: How to retrieve data from a table using the id's retrieved from other table

From Dev

In Oracle APEX, how do I make my button delete a row?

Related Related

  1. 1

    How do I grab SQLite row in UITableView based on ID? (Detailed)

  2. 2

    How do i pass the ID of a row from my database to a modal dialog?

  3. 3

    I am new on rails i not sure what is going on my code but I want to filter data from database by searching using id how can i do it

  4. 4

    How do I find out a specific row ID from a table?

  5. 5

    Unable to delete row data in my table view from sqlite

  6. 6

    How do I get my delete button to delete a single row?

  7. 7

    How do I find all the <li> having data-et-id="A" from <ul> using selectors?

  8. 8

    delete row id using Contentprovider

  9. 9

    How do i select row json with the id

  10. 10

    How do I delete a row when multiple rows have the same id

  11. 11

    How do I get the tr data-id using JQuery?

  12. 12

    How do I conduct an analysis by row ID where each row will be resampled (reanalyzed) 10 times before moving on to the next row in R?

  13. 13

    Delete multiple rows while using the id from the row before

  14. 14

    How do I get the id from an ObjectID, using Python?

  15. 15

    How to get the last row Id after insert data into table for SQLite

  16. 16

    Delete a row javascript using row id

  17. 17

    Can I do {controller}\{id} with a Guid instead of {controller}\{action}\{id}

  18. 18

    How do I delete a row in a UITableView where the var is an integer?

  19. 19

    Python/Pandas: How do I take specific columns from the second row of each ID and place it in new columns on the first row of the ID?

  20. 20

    Where do I find my Facebook Audience ID?

  21. 21

    Where do i find my Google Wallet Transaction ID

  22. 22

    Where do I find my GCM sender ID?

  23. 23

    Where do i find my Google Wallet Transaction ID

  24. 24

    Where do I find my Facebook Audience ID?

  25. 25

    Where do i find Admob Test Device ID for my iPhone?

  26. 26

    How to get last inserted row id from sqlite in phonegap android

  27. 27

    How to get last inserted row id from sqlite in phonegap android

  28. 28

    Android SQLite: How to retrieve data from a table using the id's retrieved from other table

  29. 29

    In Oracle APEX, how do I make my button delete a row?

HotTag

Archive