Developer Tools
SQL UPDATE Statement Builder
Build a SQL UPDATE statement from column assignments and a WHERE filter, or bulk update many rows with one CASE query. Six dialects, parameterized or inline.
SQL UPDATE statement builder
Set one or more columns to a single value, then filter the rows to change with a WHERE clause.
SET assignments
The WHERE text is inserted as typed. For a guided builder with parameters, use the SQL WHERE Clause Builder and paste the result here.
UPDATE statement (3 columns)
UPDATE users
SET status = $1,
updated_at = $2,
login_count = $3
WHERE id = 42;Bound parameters (3)
$1 = "active" $2 = "2026-06-23" $3 = 0
Pass these values to your driver in order. Parameterized statements keep user input out of the SQL text and are the safe way to run an UPDATE.
How to use
- Pick a mode: Single row / filter for one set of values targeted by a WHERE clause, or Bulk by key to update many rows to different values from a pasted table.
- Choose the SQL dialect, set the table name (and optional schema), and in single mode pick the parameter style your driver uses or inline literals.
- In single mode, add one row per column to change, choose each value's type, enter the value, and type the WHERE clause that selects the rows to update.
- In bulk mode, paste a header row plus one row per record, then name the key column; every other column becomes a CASE expression keyed on that column.
- Read the generated UPDATE statement, copy it with the copy button, and copy the bound parameter values too when you are using a parameterized style.
About this tool
SQL UPDATE Statement Builder writes the UPDATE statement for you so a routine data fix does not turn into a query that changes every row by accident. It has two modes. Single row / filter mode builds the everyday shape, UPDATE table SET column = value, column = value WHERE condition: add one row per column you want to change, choose each value's type (text, number, boolean, date and time, NULL, or a raw expression such as login_count + 1), and type a WHERE clause to target the rows. Bulk by key mode solves the harder problem of setting many rows to different values at once. Paste a small table (a header row, then one row per record, comma or tab separated), name the key column that identifies each row, and the builder turns every other column into a CASE expression so a single statement updates each row to its own value, guarded by a WHERE key IN (...) list so rows you did not list are left untouched. Six dialects are supported: MySQL and MariaDB, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery. Each one quotes identifiers its own way (backticks, double quotes, or square brackets) and formats boolean and date literals correctly, including Oracle TO_DATE wrapping and the DATE and TIMESTAMP prefixes Postgres and BigQuery expect, so the same form produces valid SQL on every engine. In single mode you choose between parameterized output (positional ?, numbered $1, named :p1, or named @p1) and inline literals; with parameters, a separate panel lists the bound values in order so they paste straight into your driver call, which keeps user input out of the SQL text and is the safe way to run an UPDATE. String values are escaped by doubling single quotes, numbers and booleans are typed per dialect, and a raw expression value is emitted verbatim so you can reference other columns or call functions. The tool also warns about the most common UPDATE mistakes: a missing table name, no SET assignments, and above all a missing WHERE clause, which would rewrite the whole table. Everything runs locally in your browser, so the table names, column names, and values you enter are never uploaded, logged, or stored.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
SQL WHERE Clause Builder
Build SQL WHERE conditions with AND, OR, groups, parameters, and six dialects.
Open tool
DeveloperSQL IN Clause Builder
Paste a list of values and get a quoted, escaped SQL WHERE IN clause back.
Open tool
DeveloperSQL CASE WHEN Builder
Build CASE WHEN expressions with branches, ELSE, aliases, and dialect-aware quoting.
Open tool
DeveloperSQL CREATE TABLE Builder
Visual CREATE TABLE builder with constraints, indexes, and foreign keys for four SQL dialects.
Open tool
DeveloperSQL Formatter
Pretty print SQL with configurable keyword case, indent, and comma style.
Open tool
ConverterCSV to SQL Converter
Turn CSV rows into portable SQL INSERT statements for any major database.
Open tool