X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DF55311F60E2 for ; Thu, 6 Apr 2006 18:41:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31634-08 for ; Thu, 6 Apr 2006 18:41:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from rhino.esc1.com (dpc67142225134.direcpc.com [67.142.225.134]) by postgresql.org (Postfix) with ESMTP id 5941311F65B2 for ; Thu, 6 Apr 2006 18:41:30 -0300 (ADT) Received: from rhino.esc1.com (localhost.localdomain [127.0.0.1]) by rhino.esc1.com (8.12.11/8.12.11) with ESMTP id k36Lf0Ab013033 for ; Thu, 6 Apr 2006 17:41:02 -0400 Received: from localhost (localhost [[UNIX: localhost]]) by rhino.esc1.com (8.12.11/8.12.11/Submit) id k36LewTO013031 for pgsql-sql@postgresql.org; Thu, 6 Apr 2006 17:40:58 -0400 From: Terry Lee Tucker Organization: Enhanced Solutions Computing To: pgsql-sql@postgresql.org Subject: Re: Query from shell Date: Thu, 6 Apr 2006 16:40:47 -0500 User-Agent: KMail/1.5.3 References: <44355FE4.20309@correolux.com.mx> In-Reply-To: <44355FE4.20309@correolux.com.mx> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604061740.47691.terry@esc1.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200604/49 X-Sequence-Number: 24858 On Thursday 06 April 2006 02:37 pm, Judith saith: > Hi every body, somebody can show me hot to execute a query from a > shell > > thanks in advanced!!! > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org Do this: psql -c 'SELECT code FROM cust' rnd;