Subject | Thanks! It's been resolved. |
---|---|
Author | cyhoh |
Post date | 2003-11-05T08:23:25Z |
Thank you Svein and Walter. It's this CAST() function which combines
date column to character column to be one column and now I'm using
UDF for more complicated combinations. It gives no problem so far.
Regards,
Mr. Hoh
--- In firebird-support@yahoogroups.com, "Svein Erling"
<svein.erling.tysvaer@k...> wrote:
date column to character column to be one column and now I'm using
UDF for more complicated combinations. It gives no problem so far.
Regards,
Mr. Hoh
--- In firebird-support@yahoogroups.com, "Svein Erling"
<svein.erling.tysvaer@k...> wrote:
> What do you mean by "combine"? <DateColumn> + <number> does makesense
> if you want to add a certain number of days to a date, butotherwise
> it does not make any sense to "combine" anything with a date.date.
>
> I suspect you want to treat the dates as something other than a
> If so, you must explicitly cast the date to whatever type youwant, e.
> g.wrote:
>
> SELECT 'Mr. Hoh ' || cast(TODAY as CHAR(10))
> FROM RDB$DATABASE
>
> HTH,
> Set
>
> --- In firebird-support@yahoogroups.com, "cyhoh" <cyhoh@y...>
> > Hi,or
> > I want to select/show a column which combines two date (or time
> > timestamp) columns but FireBird 1.5 RC5 complainsabout "arithmetic
> > exception, numeric overflow, or string truncation" andthis "select"
> > statement fails. Can anyone help me? Thanks!
> >
> > Regards,
> > Mr. Hoh