How to declare a variable in mysql, assign it some value and use it in the request? It is necessary by means of mysql.
User-Defined Variables
SET @ t1 = 1, @ t2 = 2, @ t3: = 4;
or
SELECT @ t1, @ t2, @ t3, @ t4: = @ t1 + @ t2 + @ t3;
Documentation
article in Russian
Source: https://ru.stackoverflow.com/questions/596511/More articles:Is it normal when so many requests?Node.js - writing a module consisting of several filesDuplicate primary key why arises?Catch element dynamically changing imgWork with dictionaries: output of a key and values in which this key is includedThe robot does not use any SitemapstableView editTriggers for one column onlyTesting Flask, Peewee, PostgresqlProper php pdo compilationHow to make a method execution on a Click event?All Articles