Re: convert functions??
Posted in 1997
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Al Dev wrote: > > Is there a convert functions in informix? For example > as in sybase > > select convert(int, columnA) from table aa > > where columnA is char(30). > > The informix reference guides (sql) does not say anything about > converting the data types. Informix converts data type automatically and invisibly. In ESQL/C or 4GL just select INTO an integer and if the string is convertable to an integer it will be. If not a numeric conversion error will be reported. Using dynamic SQL in ESQL/C you can explicitely tell the engine what conversions you want in 4GL and fixed ESQL/C the conversions are implied. Art S. Kagel