:=
This page is part of MariaDB's Documentation.
The parent of this page is: SQL Operators for MariaDB Enterprise Server
Topics on this page:
Overview
Assign value.
EXAMPLES
SELECT @a := (@b := 5) + 2, @b;
+---------------------+------+
| @a := (@b := 5) + 2 | @b |
+---------------------+------+
| 7 | 5 |
+---------------------+------+
SELECT @b + @a := 1, @a;
+--------------+------+
| @b + @a := 1 | @a |
+--------------+------+
| 6 | 1 |
+--------------+------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.