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.
Danekj — — source: Informix-list mailing list archive (1991-1998)
I need to do a SELECT where I match only the last (rightmost) 7 digits of
an integer field. If you imagine that field xyz is an integer or serial
type field I want to do the following:
SELECT * FROM a_table WHERE xyz LIKE '%8765432';
I would like to find all records where xyz has 8765432 as the last digits,
like 98765432 or 1238765432 etc. I need to somehow fool SQL into
converting or thinking that xyz is a character type field. I now get the
error that wildcard matches are not allowed for integer type fields.
Is there a way? Thanks in advance.
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.