Top "Variables" questions

THIS IS AMBIGUOUS; USE SPECIFIC-LANGUAGE TAGS WHENEVER APPLICABLE.

Why SQL Server throws Arithmetic overflow error converting int to data type numeric?

I have an error being thrown by SQL Server Management Studio when running this code: declare @percentage numeric(3,2) set @percentage = …

sql-server variables types numeric
Assigning variables with dynamic names in Java

I'd like to assign a set of variables in java as follows: int n1,n2,n3; for(int i=1;i&…

java variables dynamic-variables
Mixing a PHP variable with a string literal

Say I have a variable $test and it's defined as: $test = 'cheese' I want to output cheesey, which I can …

php string variables
Removing double quotes from variables in batch file creates problems with CMD environment

Can anybody help with effective and safe way of removing quotes from batch variables? I have written a batch file …

variables batch-file cmd quotes
@ variables in Ruby on Rails

What's the difference between @title and title? Since both of them can be variable names. Also, how do I decide …

ruby-on-rails ruby variables
How can you print a variable name in python?

Say I have a variable named choice it is equal to 2. How would I access the name of the variable? …

python dictionary variables introspection
How to swap two variables in JavaScript

I have this two variables: var a = 1, b = 2; My question is how to swap them? Only this variables, not any …

javascript variables swap
What does ${} (dollar sign and curly braces) mean in a string in Javascript?

I haven't seen anything here or on MDN. I'm sure I'm just missing something. There's got to be some documentation …

javascript string variables concatenation
Objective-C Static Class Level variables

I have a class Film, each of which stores a unique ID. In C#, Java etc I can define a …

objective-c variables static