如何在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 */
热门推荐
9 送米的祝福语简短
10 心理考试祝福语结婚简短
11 元旦祝福语的英文简短
12 关于旅游的简短祝福语
13 感恩跨年祝福语大全简短
14 哥哥结婚妹妹祝福语 简短
15 祝企业祝福语简短的
16 中秋祝福语简短有深度
17 地生中考祝福语简短
18 结婚新娘妈妈祝福语简短