SQL translator › T-SQL → MySQL

SQL Server to MySQL translator

The other direction. Useful when the analyst lives in SSMS and the client lives on RDS MySQL.

Usual swaps

SQL ServerSQL Server
TOP nLIMIT n
OFFSET FETCHLIMIT offset, count
ISNULLIFNULL
GETDATE()NOW()
DATEADD(day, n, d)DATE_ADD(d, INTERVAL n DAY)
STRING_AGGGROUP_CONCAT
IIFIF
[brackets]backticks
IDENTITYAUTO_INCREMENT

nvarchar becomes varchar with a utf8mb4 charset. bit becomes tinyint(1).

Then write it on a ticket

Monday is free. A colleague asks, you type, we mark it.

Clock in free