views:

63

answers:

2

Is there an utility to convert mysql query in postgresql query ?

+1  A: 

For DDL you can use mysqldump (see http://en.wikibooks.org/wiki/Converting_MySQL_to_PostgreSQL)

mysqldump --compatible=postgresql databasename > outputfile.sql

For DML I don't know of a tool that would automatically adjust queries from MySQL to PostgreSQL.

halfdan
+1  A: 

See also the PostgreSQL-wiki.

Frank Heikens