如何在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 */
热门推荐
1 狗狗技能训练
5 如何训练狗狗笑
6 狗狗训练排便
9 狗狗响片训练
10 如何训练狗狗不捡食
11 狗狗尿训练
12 怎么训练狗狗找东西
13 狗狗训练站立
14 狗狗训练飞盘
15 鞍山狗狗训练
16 怎样训练泰迪狗狗谢谢
17 狗狗外出训练
18 怎么训练金毛狗狗大小便