Formatadores e Código
PostgreSQL → MySQL Converter
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().
Nota do editor
Understanding · Two SQLs that look the same — until they don't.
Este capítulo aprofundado está disponível apenas em inglês no momento. A ferramenta de conversão acima funciona no seu idioma; o artigo explicativo longo ainda não foi traduzido.
Perguntas frequentes
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.
As pessoas também pesquisam por
Ferramentas relacionadas
More in this room.
- Diagrama ER → SQLDSL de Texto → DDL com chaves externas e índices.
- Explicador de Queries SQLFormate qualquer SQL e explique o que cada cláusula faz.
- Auxiliar de Migração NoSQL → SQLFormato de documento MongoDB → esboço de esquema relacional.
- Recomendação de Índice SQLIdentifique índices em falta a partir de cláusulas WHERE / JOIN / ORDER.
- Conversor de JSON para XMLConverta JSON para XML limpo e bem formatado.
- Formatador e Validador de JSONEmbeleze, minifique e valide JSON — grátis, sem registo.