如何在MySQL代码中添加注释?
我们可以借助#符号在MySQL中添加注释。每当我们在任何句子前写#符号时,MySQL将忽略整行。
MySQL支持三种类型的注释-
1.借助#符号
mysql> create table CommentDemo -> ( -> id int #Id is an integer type -> );
上面,我们将注释设置为-
- id is an integer type
3.借助/**/符号
这是针对多行注释的,与C或C++语言相同。
mysql> create table CommentDemo3 -> ( -> /*id is an integer type */ -> id int -> );
上方,我们将多行注释设置为
/*id is an integer type */
热门推荐
10 儿子立冬祝福语简短独特
11 对当兵的祝福语简短
12 侄儿高考试祝福语简短
13 伴郎红包祝福语朋友简短
14 媳妇生日简短祝福语朋友
15 公司年会祝福语简短最好
16 元旦感恩祝福语简短大全
17 红包祝福语简短10字
18 周六早晨祝福语简短