Tu es sacrément tenace !
Bon amusement !
Bon amusement !
sudo -u postgres pg_dump --format p --inserts mabdd > /chemin/fichier.sql
$array = pg_copy_to($pg, $tablename, "~",''); $contents = implode("\n", $array); fwrite($head, $contents);
$array = pg_copy_to($pg, $tablename, ","); $contents = implode("\r\n", $array); $contents = retirelignesvides($contents); fwrite($head, $contents);
sort($array, SORT_NUMERIC);
$array = pg_copy_to($pg, "select * from ". $tablename . " order by id", ",");
$array = pg_copy_to($pg, $tablename, ",");
Commentaire