0 votes
in Sql by
how does a local variable is defined using T-SQL?

1 Answer

0 votes
by

A local variable is defined using TSQL by using statement “DECLARE” and the name of the local variable should begin with “@” sign as the first character of its name.

For example, integer CNT we will define local variable as, DECLARE @CNT INT

...