pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Volkan YAZICI <yazicivo@ttmail.com>
To: Anoop G <anoopmadavoor@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How I can check a substring is a valid number in postgresql ?
Date: Thu, 24 Apr 2008 16:53:15 +0300
Message-ID: <87wsmn5ph0.fsf@alamut.mobiliz.com.tr> (raw)
In-Reply-To: <1a027d210804240634w4ee63ccdi251757231d3827bf@mail.gmail.com>
References: <1a027d210804240634w4ee63ccdi251757231d3827bf@mail.gmail.com>

On Thu, 24 Apr 2008, "Anoop G" <anoopmadavoor@gmail.com> writes:
> How I can check a substring is a valid number in postgresql ?

SELECT col ~ '[0-9]+';


Regards.



view thread (3+ messages)  latest in thread

Message-ID: <87wsmn5ph0.fsf@alamut.mobiliz.com.tr>
Permalink:  ../87wsmn5ph0.fsf@alamut.mobiliz.com.tr/
Also on:    postgresql.org/message-id/87wsmn5ph0.fsf@alamut.mobiliz.com.tr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: yazicivo@ttmail.com, anoopmadavoor@gmail.com
  Subject: Re: How I can check a substring is a valid number in postgresql ?
  In-Reply-To: <87wsmn5ph0.fsf@alamut.mobiliz.com.tr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox