dbTalk Databases Forums  

Bad resultsconcatenating string

comp.databases.btrieve comp.databases.btrieve


Discuss Bad resultsconcatenating string in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MISIU
 
Posts: n/a

Default Bad resultsconcatenating string - 11-13-2003 , 06:37 AM






Hi all,

I have a problem!

select
if(substring(text,1,1)='2','#',substring(text,1,1) )+
if(substring(text,2,1)='3','#',substring(text,2,1) )
from test

same samples
text = '23','25','53'

result = '#1','#1','51'

Why??

Thanks,
Jarek




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.