Subject Re: [firebird-support] select and typecast data
Author Helen Borrie
At 06:37 PM 16/10/2003 +0200, you wrote:


>Helen Borrie wrote:
>
> > At 06:18 PM 16/10/2003 +0200, you wrote:
> > >Helo!
> > >
> > >It is possible to typecast selected data???
> >
> > Yes.
> > Now, I wonder what the next question will be...
>
>Yes the next question is HOW :)

And the next question is - what do you want to typecast as what?
Let's say I want to typecast an integer to a varchar. I need a varchar
long enough to take the biggest integer I have stored. Let's say it's 7
bytes. Then I do
select cast(myinteger as varchar(7)) as myIntToString
from mytable

hth
Helen