Recently I am working with SQL language. I found two ways of declaring temporary table variables(starting with @). My question is:
Is there any difference between them?
DECLARE
@variable1 [int],
@variable2 int
Recently I am working with SQL language. I found two ways of declaring temporary table variables(starting with @). My question is:
Is there any difference between them?
DECLARE
@variable1 [int],
@variable2 int
There is no difference in this instance. However, the square brackets are used as delimiters if you have special characters that need identifying - for example if you name a column "First Name", you'll need square brackets to escape the space character.