SQLParity

SQL converter

Rewrite quoting, escaping, row limits and function names between 16 dialects.

1

SQL Server (T-SQL) query

2

PostgreSQL query

What it changed

  • [name]"name"8 places
  • LEN()LENGTH()1 place
  • ISNULL()COALESCE()1 place
  • current timestampCURRENT_TIMESTAMP1 place
  • TOP 10LIMIT 101 place

What you still need to do

Nothing in this query is the kind of thing that translates wrongly. Still run it once before you trust it.

Anything left in this list was recognised and left as it was on purpose. A function renamed to one that takes its arguments in a different order produces SQL that runs and returns the wrong rows, which is worse than SQL that fails.