SQLFormatter
FormatterConvertPricingDocsGet Pro
SQL Converter · OracleMySQL

Convert Oracle SQL to MySQL

Oracle to MySQL swaps ROWNUM for LIMIT, NVL for IFNULL, the || operator for CONCAT() and SYSDATE for NOW(). A mechanical formatter only re-indents — it won’t rewrite dialect-specific syntax. The AI converter in the app translates the query and the table below shows exactly what changes.

Oracle — source
Oracle
SELECT p.product_id,
       NVL(p.name, 'untitled') AS name,
       p.code || '-' || p.rev AS sku
FROM products p
WHERE ROWNUM <= 100
ORDER BY p.product_id;
MySQL — converted
MySQL
SELECT p.product_id,
       IFNULL(p.name, 'untitled') AS name,
       CONCAT(p.code, '-', p.rev) AS sku
FROM products p
ORDER BY p.product_id
LIMIT 100;
Convert your own query

What changes from Oracle to MySQL

OracleMySQLWhy
ROWNUM <= 100LIMIT 100MySQL uses LIMIT; there is no ROWNUM pseudocolumn.
a || bCONCAT(a, b)MySQL concatenation is CONCAT() by default.
NVL / SYSDATEIFNULL / NOW()Oracle built-ins map to MySQL equivalents.

Other SQL conversions

OraclePostgreSQLPostgreSQLMySQLT-SQLMySQLOracleSnowflakeAll conversions →