Formatowanie i Kodowanie
Konwerter 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().
Notka redakcyjna
Understanding · Two SQLs that look the same — until they don't.
Ten szczegółowy rozdział jest obecnie dostępny tylko w języku angielskim. Narzędzie konwersji powyżej działa w Twoim języku; długi artykuł objaśniający nie został jeszcze przetłumaczony.
Często zadawane pytania
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.
Ludzie wyszukują również
Powiązane narzędzia
More in this room.
- Diagram ER → SQLText DSL → DDL z kluczami obcymi i indeksami.
- Wyjaśniacz Zapytań SQLFormatuj dowolny SQL i wyjaśnij, co robi każda klauzula.
- Pomocnik Migracji NoSQL → SQLKształt dokumentu MongoDB → szkic schematu relacyjnego.
- Rekomendacja Indeksów SQLWykryj brakujące indeksy z klauzul WHERE / JOIN / ORDER.
- Konwerter JSON na XMLKonwertuj JSON na czysty, dobrze sformatowany XML.
- Formatowanie i walidacja JSONUpiększ, minifikuj i waliduj JSON – za darmo, bez rejestracji.