I'm trying to insert a special character values into my sqlite table. For that i have used following query, that contains octal values.
"INSERT INTO \"manufacturers\" VALUES(NULL,NULL,NULL,'1970-01-01 00:00:00','1970-01-01 00:00:00','35','A Priorite\\047');"
when i displaying the names it doesn't converted to corresponding string value, it displays the same octal value inserted as (A Priorite\047);
Now i need an suggestion to convert the octal value to string or char by using sqlite statements.
I know we can easily obtain it by using java code but my requirement is to do it by use of sqlite statements. Here the last value is the name field which is contains the octal value of \047(as string ').
I've also tried to convert the decimal value to char, it works fine. In my case, if i convert the octal value to decimal value then i can easily convert to char. but i can't convert octal to decimal.
Note: I'm having thousands of record, so can't manually insert the special characters into each row of table. And I'm not supposed to insert the values manually.
Thanks in Advance. Any help would be appreciated.
'A Priorite\047'should work.\0###, where ### are octal digits.1to377. But SQLite is complaining about statement, you MUST use parameters as @CL answer.