Re: How to select text field as interger

From: silly sad <sad(at)bankir(dot)ru>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to select text field as interger
Date: 2010-06-30 08:12:46
Message-ID: 4C2AFC7E.2050806@bankir.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>> | SELECT Name FROM Test WHERE Name::INT = 1;
>
> But note that this is going to throw an error if there are any table
> rows where the name field *doesn't* contain a valid integer.

and it recalls the problem of error suppressing once again

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Eduardo Schweigert 2010-06-30 17:13:22 Invitation to connect on LinkedIn
Previous Message Tom Lane 2010-06-29 22:07:08 Re: How to select text field as interger