Hai
It would be better if you provide us with more informations about your database, operating system and programing language(if any)...
Anyway...... Here are some solutions assuming that you have to move from mysql -> flat file -> postgres.... undex linux platform
To fetch data form mysql to a flat file.....
echo "select * from companies where eid=\"something\" and edept=\"something\"" | /usr/local/mysql/bin/mysql -uUSERNAME -pPASSWORD DB_NAME > foo.txt;
To import from flat file to postgres
echo "COPY table_name FROM filename" | psql USERNAME DB_NAME;
to import from a flat file to mysql you have a query called LOAD DATA...
I am not soo good in database... My query may have some errors... For your reference visit the help of
LOAD DATA and
COPY command...
Bye
Collins