Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Jul 20, 1999

DECLARE Keyword

Question:
What is the function of the DECLARE keyword in an SQL program? I am aware you can DECLARE cursors in embedded SQL.

Are there any other instances where DECLARE is used in SQL?

Answer:
In general, the DECLARE keyword works as a placeholder to reserve space in memory for variables that will be used or referenced in a procedure or batch.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date