Thanks a million.
For future reference. Is there a way to structure the
database to automatically not return spaces.. ie, the
length of the field should be just the maximum allocated.
I noticed with MS access, the field length is the maximum
size,.. not a fix size. Is my understanding wrong?
Regards San.
[quoted text, click to view] >-----Original Message-----
>hi san,
>use function rtrim.
>
>select rtrim(id) from user
>
>--
>Vishal Parkar
>vgparkar@yahoo.co.in
>
>
>.
That did the trick! Great.
Regards San
[quoted text, click to view] >-----Original Message-----
>hi san,
>
>Use varchar datatype this will take only storage space,
of the actual length in bytes of the
>data entered.
>
>Use char datatype when the data values in a column are
expected to be consistently close to
>the same size. For example Sex that is going to be 'F'
or 'M'. or marital status like 'Single'
>or 'Married' etc.
>
>Use varchar datatype when the data values in a column
are expected to vary considerably in
>size.
>
>--
>Vishal Parkar
>vgparkar@yahoo.co.in
>
>
>.
hi san,
use function rtrim.
select rtrim(id) from user
--
Vishal Parkar
vgparkar@yahoo.co.in
hi san,
Use varchar datatype this will take only storage space, of the actual length in bytes of the
data entered.
Use char datatype when the data values in a column are expected to be consistently close to
the same size. For example Sex that is going to be 'F' or 'M'. or marital status like 'Single'
or 'Married' etc.
Use varchar datatype when the data values in a column are expected to vary considerably in
size.
--
Vishal Parkar
vgparkar@yahoo.co.in
Don't see what you're looking for? Try a search.