
June 13th, 2012, 03:55 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Posts: 2
Time spent in forums: 1 h 43 m 26 sec
Reputation Power: 0
|
|
|
Substring dont get all chars?
Hello I have problem with getting proper data from database.
1) I have query :
Code:
select Nazwa, IDTOWR, ODPLT from leki l , TOWR t
where t.id=l.IDTOWR
and it returns
URL
http://i47.tinypic.com/2mc5zqt.jpg
2) When I make
Code:
select Nazwa, IDTOWR, ODPLT from leki l , TOWR t
where t.id=l.IDTOWR and upper(SUBSTRING(ODPLT FROM 72 FOR 72)) = 'X'
i get
URL
http://i48.tinypic.com/2jfonb.jpg
As you see I don't get items with idtowr 26, 27... but they got x on 72 position. I'm using Firebird 2.5. Plz tell me what I'm doing wrong. Thank you in advance for you help and sorry for my English.
Last edited by big200 : June 13th, 2012 at 03:58 AM.
Reason: No images
|