Re: TO_CHAR informix-equivalent
Posted in 1998
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
javier mugueta unzu' wrote:
>
> There is an informix conversion function from numeric to character type
Informix automatically converts from most data types to most others as
long as the source and target types and the contained data are
compatible (ie char and date are compatible but a string that does not
contain a valid date will not successfully convert).
If you are fetching into a char type in CLI, ESQL/C, or 4GL this is
automatic, just FETCH the integer or float column into a char host
variable that is long enough to hold any possible value of the column.
If you want this in dbaccess, you already have it! Dbaccess ONLY
outputs character data, using this feature itself.
Art S. Kagel