Re: SQL Query and convertions
Posted in 1998
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
liebherr wrote: > > Could someone help me in converting string to numeric and numeric to > string in the SELECT CLAUSE of an SQL Query. > I know there is a CONVERT function in Microsoft SQL Server that works > like that : > SELECT CONVERT(CHAR(3), column1) columns one beeing an integer. > Does a similar function exist in INFORMIX ? What tools are you using? Dbaccess/ISQL always converts to char anyway. In 4GL and ESQL/C the type of the result will match the type of the host variable into which you are fetching it. The same is true for CLI and ODBC. The engine automatically converts to match the bound variable. Art S. Kagel