-1
我想使用SQLite3删除数据库上的数据,但它不起作用。无法从SQLite3中删除数据
我的表:select * from oc_groups;
结果:
gid
----
Salarie
Compte classe 6/7
Bilan/Compte de resultat
我的查询:delete from oc_groups where guid = "Compte classe 6/7"
结果:我没有得到任何错误。但我的新选择返回相同的列表,我没有任何加入...
编辑#1:
查询:sqlite> select hex(gid) from oc_groups;
结果:
hex(gid) = 61646D696E
hex(gid) = 42696C616E202F20636F6D70746520646520726573756C746174
hex(gid) = 436F6D70746520636C6173736520362F37
hex(gid) = 436120636F6E766F63202F20636F6D7074652072656E6475
hex(gid) = 414720636F6E766F63202F20636F6D7074652072656E6475
hex(gid) = 42696C616E202F20636F6D7074652064652072C3A973756C746174
hex(gid) = 53616C617269C3A9
编号#
解决与:delete from oc_groups where hex(gid) = "42696C616E202F20636F6D7074652064652072C3A973756C746174";
显示来自oc_groups;'的select hex(guid)的输出。 –
查看编辑#1,查询和结果。 – tonymx227
没有任何隐藏或错误编码的字符。请在oc_groups;'中显示'select distinct typeof(guid)'的输出。 –