Home >Database >Mysql Tutorial >How to batch comment sql statements in mysql
How to batch comment SQL statements in mysql: You can use [/* */] to implement batch comments, such as [/*select * from students;*/]. If you want to make a single line comment, you can use [#] or [--].
The specific method is as follows:
(Learning video recommendation: mysql video tutorial)
1 , use "#" to comment
#单行注释 select * from students;
2. Use "-- " to comment
Note: -- is followed by a space
-- MySQL单行注释 select * from students
(Related recommendations: mysql tutorial)
3. Use /* */ for multi-line comments
/* 此处为注释.... */ select * from students;
The above is the detailed content of How to batch comment sql statements in mysql. For more information, please follow other related articles on the PHP Chinese website!