Check out example codes for "user defined variables in sql". It will help you in understanding the concepts better.

Code Example 1

SET @var_name = expr [, @var_name = expr] ...

Learn ReactJs, React Native from akashmittal.com