Is there an utility to convert mysql query in postgresql query ?
3 Answers
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.
2 Comments
Jossef Harush Kadouri
you can also use the
-d flag to get only the tables creation sql.evtuhovdo
also use
SET standard_conforming_strings = 'off'; SET backslash_quote = 'on'; in dump first linesGo to http://www.sqlines.com/online select left side mysql in source past your mysql query and select right side select postgresql in target then click left side on convert button