Vasiliu Constantin wrote:
> 
> > > Exista vre-un utilitar care sa converteasca relatii postgres in fisiere
> > > .dbf ??
> > > Eu am incercat printr-o metoda mai intortocheata
> > > (sql->text->staroffice->dbf)
> > > M-ar interesa o cale mai scurta.
> > > 10X
> >
> > cauta dbf2mysql.

Programs to convert .dbf files to MySQL tables and vice versa

dbf2mysql: converts a .dbf to a MySQL table
mysql2dbf: converts a MySQL table to a .dbf file

daca esti capos, n-am ce-ti face. ti-am zis sa cauti dupa dbf2mysql, nu
inseamna ca nu vine si cu ce-ti trebe tie. have fun.

> 
> De fapt pe mine ma interesa conversia inversa, insa aici este o
> problema: daca in structurile SQL nu sunt definite nr. de zecimale la
> cimpurile numerice de tip float, nu stiu cum s-ar putea crea o structura
> .dbf corecta in mod automat.
> 
> Asa ca am aplicat o alta solutie (bazata pe FlagShip):
> 
> 1. dbu -> se creaza o structura my_rel.dbf dupa specificatii;
> 2. psql -c "copy my_rel to '/tmp/my_rel.txt' using delimiters ','"
> 3. un mic program compilat cu FlagShip :
> *----
> use my_rel.dbf
> dele all
> pack
> append from "/tmp/my_rel.txt" delimited
> *----
> 
> Din astea de poate face un script.
> Daca inlocuim my_rel cu a11 sau a12, banuiti pentru ce imi trebuie ;-)))
> 
> --
> +---------------------------------+-----------------------------------+
> | Constantin Vasiliu              |    StipoSoft System Administrator |
> | [EMAIL PROTECTED]          |    Linux Registered User #166419  |
> +- tel:031/610215 ----------------+------------------ fax:031/610017 -+




-- 
Camelia Nastase
Network Administrator
Dynamic Network Technologies Romania
Tel: +40-1-2106863 Fax: +40-1-3122745
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui