How to declare any variable in sql server?

 Posted by Rajesh_Kumar on 1/21/2014 | Category: Sql Server Interview questions | Views: 2217 | Points: 40

We use Declare keyword to declare any variables in Sql Server.


Declare @variable_name data-type;

For Example:-
Declare @project_name nvarchar(50);

Declare @requisition_id int;

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response