mysql

Add comment in Sql or Mysql

For single-line comment use '--' and t comment a full block use /**/

-- USE -- FOR SINGLE LINE COMMENT
-- SELECT * FROM STUDENTS

/* BLOCK LEVEL COMMENTS - COMMENT OUT A FULL BLOCK */
/*
SELECT NAME
FROM USERS
*/
Was this helpful?