How to declare any variable in sql server?

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

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

Syntax:-

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