Convert Mysql query to Postgresql query

Is there a utility to convert a mysql query to a postgresql query?

+4
source share
2 answers

See also PostgreSQL-wiki .

0
source

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 a tool that would automatically tune queries from MySQL to PostgreSQL.

+3
source

Source: https://habr.com/ru/post/1311501/


All Articles