MySQL allows you to assign values to variables and refer to them later. This is useful when you want to save the results of calculations for use in subsequent statements. This chapter discusses how user variables are defined and used in SQL statements. It covers the following exam topics:
|