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.
thain@writeme.com — — source: Informix-list mailing list archive (1991-1998)
All,
Anyone know if there is any SQL function or a better way
to validate that a 7-character defined field
if having only numbers (0-9). Since we have a char
column used as a charged ammount in a table. Here is my current SQL query:
"select sum(case when amount[1,7] not matches '[0-9][0-9][0-9][0-9][0-9][0-9][0-9]' then '0' else amount end +0) from mytable"
Any help is appreciate.
TN.
---------------------------------------------------
Get free personalized email at http://www.iname.com
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.