A variable is dbms assignment but a name given to a storage area that our programs can manipulate. SQL variable consists of a letter optionally followed by more letters, numerals, dollar signs, underscores, and number signs and should not exceed 30 characters. By default, variable names are not case-sensitive. SQL keyword as a variable name.