Question · SQL and MySQL course · Module 1: Introduction to databases

Single-line comment

How does a single-line comment begin in SQL?

Answer options

  • With a percent sign %
  • With a double slash //
  • With two dashes --
  • With an asterisk *
Show the answer

Correct answer:

  • With two dashes --