Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Art S. Kagel — — source: Usenet: comp.databases.informix
On Tue, 15 Jul 2003 02:52:54 -0400, Anton wrote:
> How could I compare two fields one of which is of integer type, the
> other is char? The version of the INFORMIX is 7.2. Thanks in advance.
Where? In an SQL statement? If the char column only contains numeric
characters you can compare the two columns directly the engine will
decide the most efficient conversion (char->int or int->char) for the
comparison based on the tables and statistics. In 9.xx you can use a
cast:
WHERE char_col = CHAR::int_col
Art S. Kagel
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.