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.
A. Pierson — — source: Informix-list mailing list archive (1991-1998)
Informix does the conversion automatically. Just try the select like
SELECT * FROM table1
WHERE zip_file[1,2] - zip_code[1,2] > 2
should work...
>
> I need to convert the a character column to integer and perform
> some operations in a WHERE clause.
>
> For eg:
> [in foxpro]
> SELECT * FROM table1
> WHERE ABS( VAL( LEFT(zip_file,2)) - VAL(LEFT(zip_code,2))) > 2 ;>
> In the above example, I'm finding the difference between first
> two digits of 2 char columns.
Your privacy choices
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.