Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfWrf-0006Gg-Vz for pgsql-sql@arkaria.postgresql.org; Tue, 07 Apr 2015 17:00:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YfWrf-0007Fh-B6 for pgsql-sql@arkaria.postgresql.org; Tue, 07 Apr 2015 17:00:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YfWre-0007FW-Ie; Tue, 07 Apr 2015 17:00:38 +0000 Received: from mail.fmed.uba.ar ([157.92.152.1] helo=azteca.fmed.uba.ar) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YfWrT-0007jP-T9; Tue, 07 Apr 2015 17:00:36 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by azteca.fmed.uba.ar (Postfix) with ESMTP id 17BAB13A0033; Tue, 7 Apr 2015 13:59:53 -0300 (ART) X-Virus-Scanned: amavisd-new at fmed.uba.ar Received: from azteca.fmed.uba.ar ([127.0.0.1]) by localhost (azteca.fmed.uba.ar [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id URQRsRrd+tmB; Tue, 7 Apr 2015 13:59:50 -0300 (ART) Received: from azteca.fmed.uba.ar (azteca.fmed.uba.ar [157.92.152.1]) by azteca.fmed.uba.ar (Postfix) with ESMTP id ED95D13A0032; Tue, 7 Apr 2015 13:59:46 -0300 (ART) Date: Tue, 7 Apr 2015 13:59:46 -0300 (ART) From: Gerardo Herzig To: Suresh Raja Cc: pgsql-general@postgresql.org, pgsql-sql@postgresql.org Message-ID: <1981538304.72853.1428425986418.JavaMail.root@fmed.uba.ar> In-Reply-To: Subject: Re: check data for datatype MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [157.92.152.143] X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - FF3.0 (Linux)/7.2.0_GA_2669) X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org I guess that could need something like (untested) delete from bigtable text_column !~ '^[0-9][0-9]*$'; HTH Gerardo ----- Mensaje original ----- > De: "Suresh Raja" > Para: pgsql-general@postgresql.org, pgsql-sql@postgresql.org > Enviados: Viernes, 27 de Marzo 2015 15:08:43 > Asunto: [SQL] check data for datatype > > > > > > > > > Hi All: > > > I have a very large table and the column type is text. I would like > to convert in numeric. How can I find rows that dont have numbers. I > would like to delete those rows. > > > Thanks, > -Suersh Raja -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql