I am currently working on an application that will input multple lines into
a Postgre database. I am using the following code
$sql = "COPY table_2 FROM STDIN DELIMITER AS '\t'";
$sql = $data1."\t".$data2."\t".implode("\t",
$error_message('Could not enter details');
This gives me an example line like
57 BELF 254 0 10877 5138 0 0 true 05-05-2005
To go into a table with fields INT, CHAR(4) INT, INT, INT, INT, INT, INT,
However, its not going in...
I'm getting an error
ERROR: missing data for column "col2"
With no data being inserted.
If anyone could point out where I'm going wrong I'd be forever in their debt
pgsql-php by date
|Next:||From: Michael Fuhr||Date: 2005-06-20 14:05:31|
|Subject: Re: pg_put_line() Frustration|
|Previous:||From: Felipe Fernandez||Date: 2005-06-18 17:07:44|
|Subject: Problemas con 7.4.7 y php 4-10 debian3.1|