MySQL: @variable vs. variable. What’s the difference?
MySQL has a concept of user-defined variables. They are loosely typed variables that may be initialized somewhere in a session and keep their value until the session ends. They are prepended with an @ sign, like this: @var You can initialize this variable with a SET statement or inside a query: SET @var = 1 … Read more