SQL Query Builder

Build SELECT, INSERT, UPDATE and DELETE SQL queries with a simple form, including joins and conditions. Copy ready-to-run SQL. Free.

Conditions (WHERE)
SQL
SELECT id, name, email
FROM users
WHERE country = 'BD'
ORDER BY created_at DESC
LIMIT 50;

Values are quoted and escaped for you. In application code, use parameterised queries instead of pasting values into SQL.

How to use SQL Query Builder

  1. Pick SELECT, INSERT, UPDATE or DELETE and your database.
  2. Fill in the table, columns, values and conditions.
  3. Copy the generated SQL.

Good to know

  • Values are quoted and escaped. In real applications, always use parameterised queries instead of building SQL from user input.

Privacy

Runs entirely in your browser. Nothing you enter or open here is uploaded.

Related tools