You can't. A database stores values such as numbers, strings, or dates. There is no concept of storing a variable in a database that I know of (let's not talk about persisting objects here, this is php and mysql).
If all you need is the name of the variable, that's just a string. If you want the value stored in the variable variable, it's just like any other variable's value.