how do i import my sql query result to a file
how do i import my sql query result to a file
От:
Joseph Syjuco <joseph@asti.dost.gov.ph>
Дата:
how do i import results of my select query to a file thanks
Re: how do i import my sql query result to a file
От:
Steve Brett <SBrett@e-mis.com>
Дата:
\? will get you a list of the commands in psql. Steve > -----Original Message----- > From: Joseph Syjuco [mailto:joseph@asti.dost.gov.ph] > Sent: 18 July 2002 22:47 > To: pgsql-sql@postgresql.org > Subject: [SQL] how do i import my sql query result to a file > > > how do i import results of my select query to a file > thanks > > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org >
Re: how do i import my sql query result to a file
От:
Robert Treat <xzilla@users.sourceforge.net>
Дата:
not sure I understand the question, but from inside psql you can do: \o FILENAME send all query results to file or |pipe Robert Treat On Thu, 2002-07-18 at 17:47, Joseph Syjuco wrote: > how do i import results of my select query to a file > thanks > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org
Re: how do i import my sql query result to a file
От:
Ludwig Lim <lud_nowhere_man@yahoo.com>
Дата:
--- Joseph Syjuco wrote: > how do i import results of my select query to a file > thanks > in the psql command prompt type \o and then type your select query. The result will be dumped into ludwig. __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com
Re: how do i import my sql query result to a file
От:
Joseph Syjuco <joseph@asti.dost.gov.ph>
Дата:
thanks for the tips !!! actually i used \g . Again thanks On Thu, 2002-07-18 at 20:34, Ludwig Lim wrote: > > --- Joseph Syjuco wrote: > > how do i import results of my select query to a file > > thanks > > > > in the psql command prompt type > \o > > and then type your select query. > The result will be dumped into > > ludwig. > > __________________________________________________ > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes > http://autos.yahoo.com > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly