杂项:MySQL 注释 0 个改进

MySQL 中,注释也可以放在 SQL 查询中。注释可以是单行或多行。

三种注释类型:

1. 使用 ##

语法#

# comment goes here  

示例 1#

select *from # JAVATPOINT  
student_1;  

MySQL Comments

2. 使用 --#

语法#

comment goes here  

示例 2#

select *from -- JAVATPOINT  
student_1;  

MySQL Comments

3. 使用 /**/#

语法#

/* comment goes here */  

示例 3#

select *from student_1 /* JAVATPOINT.com */;  

MySQL Comments

本文为 Wiki 文章,邀您参与纠错、纰漏和优化