Re: Can COPY skip a header line?

From: Matteo Beccati <php(at)beccati(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can COPY skip a header line?
Date: 2004-11-19 16:36:32
Message-ID: 419E2110.4060709@beccati.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

> Can I get PHP to remove the first row without reading the whole file in? If
> there was a way where PHP would just chop the first row off that would be
> ideal...

If you are using "COPY table FROM stdin" and pg_put_line() it's not much
difficult to skip the first line ;)

Best regards
--
Matteo Beccati
http://phpadsnew.com
http://phppgads.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Taber, Mark 2004-11-19 16:53:40 Re: Phantom user in db--'128'
Previous Message Tom Lane 2004-11-19 16:35:26 Re: PostegreSQL 8.0.0 Beta4 Win32