Home

Single line comments should start with --

Rule description

  • Single line comments should start with --

 

Non-compliant Code Example

/* Select all the columns in the customers table */  --Non compliant code (Single line comments starting with /*)
SELECT 
    *       
FROM
    CUSTOMERS

Compliant Code Example

-- Select all the columns in the customers table   --Compliant code (Single line comments starting with --)
SELECT 
    *       
FROM
    CUSTOMERS
Visual Expert 2020
 VEPLSQLRULE112