- Can strings in SQLite 3 include
NUL
characters? - If the answer to 1 is "yes", how can they be written in SQL queries? SQLite doesn't seem to have
chr
orchar
functions.
views:
27answers:
1
A:
Not sure from which version onwards it is supported, but you can do it:
create table foo (bar data);
insert into foo(bar) values (x'001122334400ff');
select length(bar),hex(bar),bar from foo;
My Other Me
2010-10-29 14:59:57
That's a blob (mentioned in the comments already), not a string.
Alexey Romanov
2010-10-29 15:14:03