Subject | Re: [ib-support] Type Casting |
---|---|
Author | Helen Borrie |
Post date | 2003-03-07T04:37:49Z |
At 12:02 PM 6/03/2003 -0300, you wrote:
select cast(current_date as varchar(11)) as SomeDate
from rdb$database /* dialect 3 only */
select cast(current_timestamp as varchar(24)) as SomeDate
from rdb$database
heLen
>hi !!Just cast it as a varchar of sufficient length, e.g.
>
>I have a stored procedure returning a table with only one row (string
>type) and performing a select over a date type column.
>
>select birthdate
>from table
>into :strdate
>
>So, how can I cast from a date type to a string type ?
select cast(current_date as varchar(11)) as SomeDate
from rdb$database /* dialect 3 only */
select cast(current_timestamp as varchar(24)) as SomeDate
from rdb$database
heLen