| View previous topic :: View next topic |
| Author |
Message |
Ikac Guest
|
Posted: Sun Jan 28, 2007 12:20 am Post subject: string of spaces after retriving rows |
|
|
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
|
Posted: Sun Jan 28, 2007 5:25 am Post subject: Re: string of spaces after retriving rows |
|
|
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
|
Posted: Sun Jan 28, 2007 4:15 pm Post subject: Re: string of spaces after retriving rows |
|
|
| 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 |
|
 |
|