Question 2Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

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

  1. AMultiline Comments or Block Comments: Multiline comments start with /* and end with */
  2. BSingle-line comments start with -- double hyphens
  3. CInline Comments: Inline comments start with -- after the SQL statement on the same line
  4. D// This is used for giving a comment
Show answerHide answer

Correct answer: (D) // This is used for giving a comment

Explanation

Standard SQL supports -- for single-line (and end-of-line) comments and /* ... */ for block comments. // is a comment in C++/Java/JavaScript, not in SQL-99.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

This is question 2 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.