Is there a metod to dynamic creating a variable?

I keep the variable name in the database and I would like to use this
name (in database) to create a variable (name from database).

Is it possible?

What scope do you want the variable to be? If it’s within a class as an
instance variable you can use “instance_variable_set”, but I’d question
the design choice if a variable’s name is so important.