Question discussion

Which is NOT a valid way to include a comment in SQL-99?

358806Medium DSSSB TGT Computer Science 0 replies 0 views
0
Which is NOT a valid way to include a comment in SQL-99?
  • AMultiline Comments or Block Comments: Multiline comments start with /* and end with */
  • BSingle-line comments start with -- double hyphens
  • CInline Comments: Inline comments start with -- after the SQL statement on the same line
  • D// This is used for giving a comment
Correct answer: D

Explanation

SQL-99 supports /* … */ block comments and -- single-line comments. '//' is not a valid comment marker in SQL.

Discussion 0

Nobody has replied yet. Start the discussion!