You can easily enter a blob value using the x'abc' syntax, but is there a way to display it that way too? As shown below, selecting directly, or implicitly converting to a string using concatenation doesn't work, and shows garbage (Windows DOS prompt here).
sqlite> create table blobs (uid blob);
sqlite> insert into blobs values (x'0123456789abcdef0123456789abcdef');
sqlite> select * from blobs;
?#Eg??═∩?#Eg??═∩
sqlite> select ''||uid from blobs;
?#Eg??═∩?#Eg??═∩
I'd like the select to display:
x'0123456789abcdef0123456789abcdef'
Thanks, --DD
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…