From: | Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Isnumeric function? |
Date: | 2004-09-07 05:44:21 |
Message-ID: | 82E30406384FFB44AFD1012BAB230B55037D056E@shiva.au.lpint.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
How could you determine if a value being inserted into a varchar column is
numeric?
I was thinking of using a Regular expression to find this, something like
.. Where content ~* '^[0-9]{1,10}'
There must be an easier way like a isNumeric() function?
Theo
______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright. If you
have received this email in error, please advise the sender and delete
it. If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone. You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 2004-09-07 06:05:26 | Re: Isnumeric function? |
Previous Message | Troels Arvin | 2004-09-06 20:30:24 | When a table was last ANALYZEd |