mysql comment
snippet in sql

mysql comment

user2349

-- This is a SQL Comment

how do you comment in mysql workbench

user9803

mysql> SELECT 1+1;     # This comment continues to the end of line
mysql> SELECT 1+1;     -- This comment continues to the end of line
mysql> SELECT 1 /* this is an in-line comment */ + 1;
mysql> SELECT 1+
/*
this is a
multiple-line comment
*/
1;

comments in mysql

user3607

#this is a comment
-- this is a comment but requires a whitespace/tab/newline after the double -