pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Inserting data into PostgreSQL
2+ messages / 2 participants
[nested] [flat]

* Inserting data into PostgreSQL
@ 1999-08-18 23:54  rodneyr@embratel.com.br
  0 siblings, 1 reply; 2+ messages in thread

From: rodneyr@embratel.com.br @ 1999-08-18 23:54 UTC (permalink / raw)
  To: pgsql-interfaces@hub.org

How can I inserting data from a file into PostgreSQL? I've tried the
following SQL command, but it didn't work:

INSERTO INTO table_name
  (column_name[, ...])
   FROM FILE 'file_name' (data_type, ...)

I received the message:

ERROR:  parser: parse error at or near "from"

Besides, which caracter must we use to separate the columns into the file?
I used ",". Is it correct?

Thanks,

Rodney.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [INTERFACES] Inserting data into PostgreSQL
@ 1999-08-19 01:41  SUMA R <suma.r@tatainfotech.com>
  parent: rodneyr@embratel.com.br
  0 siblings, 0 replies; 2+ messages in thread

From: SUMA R @ 1999-08-19 01:41 UTC (permalink / raw)
  To: rodneyr@embratel.com.br; +Cc: pgsql-interfaces@hub.org

Hi,
   U can insert the data from a file to the table using the copy command

   COPY table_name FROM 'filename' USING DELIMITERS 'del'

Better u give absolute pate when referring to the filename. 

On Wed, 18 Aug 1999 rodneyr@embratel.com.br wrote:

> How can I inserting data from a file into PostgreSQL? I've tried the
> following SQL command, but it didn't work:
> 
> INSERTO INTO table_name
>   (column_name[, ...])
>    FROM FILE 'file_name' (data_type, ...)
> 
> I received the message:
> 
> ERROR:  parser: parse error at or near "from"
> 
> Besides, which caracter must we use to separate the columns into the file?
> I used ",". Is it correct?
> 
> Thanks,
> 
> Rodney.
> 
> 
> 
> ************
> Check out "PostgreSQL Wearables" @ http://www.pgsql.com
> 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1999-08-19 01:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-08-18 23:54 Inserting data into PostgreSQL rodneyr@embratel.com.br
1999-08-19 01:41 ` SUMA R <suma.r@tatainfotech.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox