Форматтеры и код
PostgreSQL → MySQL Конвертер
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().
Примечание редактора
Understanding · Two SQLs that look the same — until they don't.
Эта углублённая глава пока доступна только на английском языке. Инструмент конвертации выше работает на вашем языке; развёрнутая статья ещё не переведена.
Часто задаваемые вопросы
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.
Люди также ищут
Связанные инструменты
More in this room.
- ER Диаграмма → SQLТекстовый DSL → DDL с внешними ключами и индексами.
- Объяснитель SQL-запросовФорматируйте любой SQL и объясняйте, что делает каждое предложение.
- Помощник миграции NoSQL → SQLПостройте набросок реляционной схемы из формы документа MongoDB.
- Рекомендации по SQL-индексамОпределяйте отсутствующие индексы из условий WHERE / JOIN / ORDER.
- Конвертер JSON в XMLКонвертируйте JSON в чистый, правильно сформированный XML.
- Форматировщик и валидатор JSONУкрашайте, минимизируйте и проверяйте JSON — бесплатно, без регистрации.