Databases Reference
In-Depth Information
Now the script is starting to look organized.
Comments
Comments can be added in the script in two ways. A single line can be assigned as a
comment by prefixing it with // . For example:
// This is a single line comment
Additionally, multiple lines can be converted to comments by enclosing them
between /* and */ . Like this:
/* This is the first line of the comment
This is the second line of the comment*/
It is advisable to comment the following things:
• Table names: They makes it easy to understand which script belongs to
which table
• General information: For example, who made this change, when, and also
which field is being used as a key field in a JOIN statement
• Business logic: It describes what the business logic is and why you are taking
a certain approach
 
Search WWH ::




Custom Search