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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Enterprise
Expertise: All
Jun 22, 2000

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Quickly Comment and Uncomment Blocks of Code in SQL

During development, it is often necessary to have blocks of code for debug purposes. If the debug code is lengthy, commenting and uncommenting it can be tedious. But if you put either a '--' in front of each line or a '/*' at the front and a '*/' at the end of each line, you can comment and uncomment the code block with a couple of keystrokes. Here are examples of each method:

Commented code

 /* Debug code goes in this block
Print 'Some debug info'
Print 'Some more debug info'
--*/
Uncommented code
 --/* Debug code goes in this block
Print 'Some debug info'
Print 'Some more debug info'
--*/
Just by adding or deleting two dashes at the beginning of the code block, the entire block can be commented or uncommented.
Don Benson
 
Comment and Contribute

 

 

 

 

 


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

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date