BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

string of spaces after retriving rows

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
Ikac
Guest





PostPosted: Sun Jan 28, 2007 12:20 am    Post subject: string of spaces after retriving rows Reply with quote



 Hi,

I solve this problem.

I am using IBX under D6. I have table "CUSTOMER", field "NAME" - char
(20). I stored "George" into field ('Insert into .....'). But after
retrieving field by "select name from ....." I have
got "George "

Some ideas ?

Excuse my bad english. Thank all

Jura



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Bill Todd
Guest





PostPosted: Sun Jan 28, 2007 5:25 am    Post subject: Re: string of spaces after retriving rows Reply with quote



If you do not want the trailing spaces change the data type of the
field to VARCHAR(20). CHAR fields must be padded with spaces to their
full length according to the SQL standard.

--
Bill Todd (TeamB)
Back to top
Ikac
Guest





PostPosted: Sun Jan 28, 2007 4:15 pm    Post subject: Re: string of spaces after retriving rows Reply with quote



Quote:
If you do not want the trailing spaces change the data type of the
field to VARCHAR(20). CHAR fields must be padded with spaces to their
full length according to the SQL standard.

--
Bill Todd (TeamB)


Thank you. It seems to works :)

J.



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.