inserting/modifying non displayable charackters

Forum related to SQLite

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
stuyckp
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 11.09.2007, 19:13

inserting/modifying non displayable charackters

Post by stuyckp »

When defining a field in a table as char(1) or wider because it is not really relevant for sqlite since it knows only TEXT.
Then I want to insert values like chr(9) chr(0) and many others because I see a char as a value between -127 upto 127 I have to do this like follows.
INSERT INTO T VALUES(x'09');

SQL Server and MySQL also support the char function like this :
INSERT INTO T VALUES(char(9));
-1-
It would be really nice if this function would be available in sqlite as well.
-2-
When now doing :
select * from T;
after selecting any output format you get into trouble, when non displayable charackters are present the string as a whole should be displayed like x'-----'
-3-
I expect
select '1'+'1' to result in '11' and not in 2 if I want this behaviour to appear I have to do this :
select '1' || '1'
is this ansi specified ?
Orbmu2k
SQLite Admin Developer
SQLite Admin Developer
Posts: 38
Joined: 07.12.2005, 07:51
Contact:

Post by Orbmu2k »

you should adress this feature requests to the sqlite developers ... the sql syntax is no zeoslib part ;-)

http://www.sqlite.org/support.html
Post Reply