### 13.7.6 SET Statements

[13.7.6.1 SET Syntax for Variable Assignment](set-variable.html)
[13.7.6.2 SET CHARACTER SET Statement](set-character-set.html)
[13.7.6.3 SET NAMES Statement](set-names.html)

 The [`SET`](set-statement.html) statement has several forms. Descriptions for those forms that are not associated with a specific server capability appear in subsections of this section:

* [`SET *`var_name`* = *`value`*`](set-variable.html) enables you to assign values to variables that affect the operation of the server or clients. See [Section 13.7.6.1, “SET Syntax for Variable Assignment”](set-variable.html).

* [`SET CHARACTER SET`](set-character-set.html) and [`SET NAMES`](set-names.html) assign values to character set and collation variables associated with the current connection to the server. See [Section 13.7.6.2, “SET CHARACTER SET Statement”](set-character-set.html), and [Section 13.7.6.3, “SET NAMES Statement”](set-names.html).

 Descriptions for the other forms appear elsewhere, grouped with other statements related to the capability they help implement:

* [`SET DEFAULT ROLE`](set-default-role.html) and [`SET ROLE`](set-role.html) set the default role and current role for user accounts. See [Section 13.7.1.9, “SET DEFAULT ROLE Statement”](set-default-role.html), and [Section 13.7.1.11, “SET ROLE Statement”](set-role.html).

* [`SET PASSWORD`](set-password.html) assigns account passwords. See [Section 13.7.1.10, “SET PASSWORD Statement”](set-password.html).

* `SET RESOURCE GROUP` assigns threads to a resource group. See [Section 13.7.2.4, “SET RESOURCE GROUP Statement”](set-resource-group.html).

* [`SET TRANSACTION ISOLATION LEVEL`](set-transaction.html) sets the isolation level for transaction processing. See [Section 13.3.7, “SET TRANSACTION Statement”](set-transaction.html).

