المنسقات والكود
محول 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لغة وصف نصية (Text DSL) → لغة تعريف البيانات (DDL) مع مفاتيح خارجية وفهارس.
- شرح استعلام SQLتنسيق أي SQL وشرح ما يفعله كل بند.
- مساعد ترحيل NoSQL → SQLشكل مستند MongoDB → رسم تخطيطي للمخطط العلائقي.
- توصية فهرسة SQLاكتشاف الفهارس المفقودة من بنود WHERE / JOIN / ORDER.
- محول JSON إلى XMLتحويل JSON إلى XML نظيف ومٌشكل جيدًا.
- منسق ومدقق JSONتجميل وتصغير وتدقيق JSON — مجاني، بدون تسجيل.