Oh, sorry.
It was my fault.
It works very well with starting number 1. :)
2012/6/19 Bart Smissaert
> Should that zero not be a 1?
> From the documentation:
> The left-most character of X is number 1
>
> RBS
>
>
> On 6/19/12, Yongil Jang wrote:
>
Should that zero not be a 1?
>From the documentation:
The left-most character of X is number 1
RBS
On 6/19/12, Yongil Jang wrote:
> Dear all,
>
> I've found following result when I try to use 'substr' function.
>
> sqlite> create table test (data text);
> sqlite> insert
Dear all,
I've found following result when I try to use 'substr' function.
sqlite> create table test (data text);
sqlite> insert into test values ('010101');
sqlite> select substr(data, 0, 2) from test;
0
sqlite> select substr(data, 0, 3) from test;
01
As you can see, string length should be
3 matches
Mail list logo