Re: win cmd line query tool - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: win cmd line query tool
Date
Msg-id 20060221144300.GH24481@svana.org
Whole thread Raw
In response to win cmd line query tool  ("uuZZuuZZ (sent by Nabble.com)" <lists@nabble.com>)
Responses Re: win cmd line query tool
List pgsql-general
On Tue, Feb 21, 2006 at 06:39:13AM -0800, uuZZuuZZ (sent by Nabble.com) wrote:
>
> I need a windows command line tool that will allow me to retrieve a row from
> a postgresql database (using odbc I would guess). I know osql won't work
> since it is geared to mssql. I tried dbisql from sybase but I don't need to
> install a CD to do this. I need something with a small foot print. Can I use
> telnet ?? Any tips would be appreciated. I'll buy something if needed, but I
> need cmd line so I can parse the output from the select.
> Thanks

What's wrong with psql?

psql -c "select * from blah where x = 44"

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: "uuZZuuZZ (sent by Nabble.com)"
Date:
Subject: win cmd line query tool
Next
From: Tony Caduto
Date:
Subject: Re: win cmd line query tool