Top "Variable-names" questions

Table name as variable

I am trying to execute this query: declare @tablename varchar(50) set @tablename = 'test' select * from @tablename This produces the following …

sql sql-server tsql variable-names tablename
Why can't variable names start with numbers?

I was working with a new C++ developer a while back when he asked the question: "Why can't variable names …

c++ variables programming-languages language-design variable-names
Create variables with names from strings

Let's assume that I want to create 10 variables which would look like this: x1 = 1; x2 = 2; x3 = 3; x4 = 4; . . xi = i; This …

string matlab variables variable-names
How can I load an object into a variable name that I specify from an R data file?

When you save a variable in an R data file using save, it is saved under whatever name it had …

r variable-names rdata
Programmatic way to get variable name in C?

I am developing a tool to dump data from variables. I need to dump the variable name, and also the …

c variables variable-names
Can variable names in Python start with an integer?

This is somewhat academic, but nevertheless. Python syntax forbids starting a variable name with a number, but this can be …

python variable-names
Bash variables: case sensitive or not?

Is bash shell scripting case sensitive? Is variable date the same as DATE?

linux bash shell case-sensitive variable-names
Create a dynamic variable reference in Typescript

Thanks ahead of time, to anyone who helps. :) This may seem a simple answer to those who are experienced, but …

javascript typescript dynamic-variables variable-names
dollar sign in variable name?

I stumbled on some C++ code like this: int $T$S; First I thought that it was some sort of …

c++ variables visual-c++ identifier variable-names
Pass variable name to plotting function title

I was wondering if anyone could help me use a variable name within a function. I've put together a dot …

r function variable-names