sqlite - How to display blob value using x'abc' binary string literal syntax? -
You can easily enter a blob value using the x'abc syntax, but display it like this Is there a way too? Using the synthesis in a string, as is shown below, does not work directly, or displays the trash (Windows DOS prompt here).
sqlite & gt; Create Table Blobs (UID Blob); SQLite & gt; Insert Blob values (x'0123456789abcdef0123456789abcdef '); SQLite & gt; Choose * from blobs; ☺ # ed. Eighths # eighthsqlite & gt; Choose from Blobs '' UID; I want to choose to display: x'0123456789abcdef0123456789abcdef '
Thanks, --DD
choose quote (uid) from blobs
Returns:
X'0123456789 ABCDEF 0123456789 ABCDEF '
And if you really want it in lowercase, you can You can use it: Choose
Comments
Post a Comment