December 2010
Intermediate to advanced
451 pages
11h 16m
English
You want to document your code with inline and multiline comments.
Place two dashes before any text to create a one-line comment. For example, in the following code there is a comment placed before the query to describe its functionality:
-- The following query obtains a count of rows from the employees table
SELECT COUNT(*)
FROM EMPLOYEES;
Multiline comments can be created beginning with a slash and asterisk (/*) and ending with an asterisk and slash (*/). The following lines depict a multiple-line comment for a given code block:
/* This comment describes the functionality
in the following code block. */
Comments play a crucial role in code development. Not only are they useful ...
Read now
Unlock full access