Formateurs & Code
PostgreSQL → MySQL Convertisseur
Translate Postgres DDL into MySQL-compatible SQL.
CREATE TABLE users (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
email TEXT UNIQUE,
data JSON,
created_at TIMESTAMP DEFAULT NOW()
);
INSERT INTO users (email) VALUES ('[email protected]')
;Manual review notes
- MySQL TIMESTAMP is UTC; ensure server tz.
- MySQL has no RETURNING; use SELECT LAST_INSERT_ID().
Note de la rédaction
Understanding · Two SQLs that look the same — until they don't.
Ce chapitre approfondi n'est actuellement disponible qu'en anglais. L'outil de conversion ci-dessus fonctionne dans votre langue ; le long article explicatif n'a pas encore été traduit.
Questions fréquentes
Quick answers.
›How are PostgreSQL data types handled?
Data types like `TEXT` and `BOOLEAN` are mapped to their MySQL equivalents, such as `LONGTEXT` or `TINYINT(1)`. Specific Postgres types like `UUID` are converted to compatible string formats.
›Does this tool support data migration?
No. This tool is designed specifically for DDL statements (schema definitions) rather than SQL `INSERT` data or binary row migration.
›What happens to Postgres sequences?
Postgres `SERIAL` or `BIGSERIAL` columns are converted to the MySQL `AUTO_INCREMENT` attribute on the primary key. Individual sequence objects are generally omitted as MySQL manages incrementing at the table level.
›Is my schema sent to a server?
No. The translation logic is executed entirely in your browser. Your database structure remains private and is never transmitted over the network.
Les internautes recherchent aussi
Outils similaires
More in this room.
- Diagramme ER → SQLDSL texte → DDL avec clés étrangères et index.
- Explicateur de requêtes SQLFormatez n'importe quel SQL et expliquez ce que fait chaque clause.
- Assistant de migration NoSQL → SQLForme de document MongoDB → esquisse de schéma relationnel.
- Recommandation d'index SQLRepérez les index manquants à partir des clauses WHERE / JOIN / ORDER.
- Convertisseur JSON en XMLConvertit JSON en XML propre et bien formé.
- Formateur et validateur JSONEmbellissez, minifiez et validez le JSON — gratuit, sans inscription.