SQL UPDATEIT technician command center
Database · SQL and Database Administration

SQL UPDATE

Update matching rows.

Copy-ready commandSQL UPDATE
UPDATE users SET enabled = 0 WHERE id = 42;
Production warning

INSERT, UPDATE, DELETE, ALTER, and restore operations can modify or remove data.

Requirements and permissions

Requirements
Appropriate database client and connection
Permissions
Database privileges vary
Last reviewed
2026-07-31

Examples

Basic example

Update matching rows.

UPDATE users SET enabled = 0 WHERE id = 42;

Common errors

Command not found

Confirm Appropriate database client and connection is installed and available in your current shell.