C
C
cinematik2017-06-02 11:59:40
MySQL
cinematik, 2017-06-02 11:59:40

Differences between Postgresql and Mysql?

Are Postgresql and Mysql very different?
Is it difficult to import a database from Mysql to Postgresql?
Will there be many differences in SQL commands at the level of program code?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Boris Korobkov, 2017-06-02
@BorisKorobkov

Both support SQL, but have their own additions to it. Google - there are many comparative articles.
Usually cosmetic changes to the dump are required. There are many converters for this.
To make the code work the same with any database, use abstractions like ORM/ActiveRecord

S
Sergey Gornostaev, 2017-06-02
@sergey-gornostaev

The most important difference is that PostgreSQL supports the modern SQL:2008 standard, while MySQL does not fully support even SQL-92.

T
terrier, 2017-06-02
@terrier

If you're migrating from MySQL to Postgres, it shouldn't be too hard - there are plenty of automatic migration converters for that. The only thing that will break is that it should not have worked
anyway :) In the opposite direction, difficulties are possible, after all, postgres has many features that are not familiar to mysql or are written differently.

V
Vladimir, 2017-06-02
@Casufi

https://www.postgresql.org/docs/9.6/static/tutoria...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question