sql_safe_updates

Overview

If set to 1, UPDATEs and DELETEs need either a key in the WHERE clause, or a LIMIT clause, or else they will aborted. Prevents the common mistake of accidentally deleting or updating every row in a table.

See also: System Variables for MariaDB Enterprise Server 10.6, in 10.5 ES, and in 10.4 ES

DETAILS

PARAMETERS

Dynamic

Yes

Scope

Global, Session

Data Type

BOOLEAN (OFF, ON)

Default Value

OFF

SKYSQL

Cloud

SkySQL Topology

ES Ver

Default

AWS

Multi-Node Analytics

10.5

OFF

Single Node Analytics

10.5

OFF

Distributed Transactions

10.5

false

10.6

false

Replicated Transactions

10.4

OFF

10.5

OFF

10.6

OFF

Single Node Transactions

10.4

OFF

10.5

OFF

10.6

OFF

GCP

Multi-Node Analytics

10.5

OFF

Single Node Analytics

10.5

OFF

Distributed Transactions

10.5

false

10.6

false

Replicated Transactions

10.4

OFF

10.5

OFF

10.6

OFF

Single Node Transactions

10.4

OFF

10.5

OFF

10.6

OFF

CHANGE HISTORY

Release Series

History

10.6 Enterprise

  • Present starting in MariaDB Enterprise Server 10.6.4-1.

10.5 Enterprise

  • Present starting in MariaDB Enterprise Server 10.5.3-1.

10.4 Enterprise

  • Present starting in MariaDB Enterprise Server 10.4.6-1.

EXTERNAL REFERENCES