Using guid in sqlite select where guid is stored in the sqlite db as binaries

后端 未结 3 1273
北恋
北恋 2020-12-17 23:43

I have a table Employee in the SQLite database. Whose primary key is \"ID\" of GUID type. I try to find the record with id = guid \'a8828ddf-

3条回答
  •  春和景丽
    2020-12-18 00:22

    The GUID is probably being stored as a binary blob; try:

    SELECT * FROM Employee
    WHERE Employee.Id = X'a8828ddfef224d36935a1c66ae86ebb3';
    

提交回复
热议问题