mysql注释方法一:使用#
mysql> mysql> SELECT 1+1; # This comment continues to the end of line +-----+ | 1+1 | +-----+ | 2 | +-----+ 1 row in set (0.00 sec) mysql>
mysql注释方法二:使用--
mysql> mysql> SELECT 1+1; -- This comment continues to the end of line +-----+ | 1+1 | +-----+ | 2 | +-----+ 1 row in set (0.00 sec)
mysql注释方法三:使用/* */
小邮包-包月订购包年服务网,该程序由好买卖商城开发,程序采用PHP+MYSQL架设,程序商业模式为目前最为火爆的包月订制包年服务模式,这种包年订购在国外网站已经热火很多年了,并且已经发展到一定规模,像英国的男士用品网站BlackSocks,一年的袜子购买量更是达到了1000万双。功能:1、实现多产品上线,2、不用注册也可以直接下单购买,3、集成目前主流支付接口,4、下单发货均有邮件提醒。
mysql>
mysql>
mysql> SELECT 1 /* this is an in-line comment */ + 1;
+---------+
| 1 + 1 |
+---------+
| 2 |
+---------+
1 row in set (0.00 sec)
mysql> SELECT 1+
-> /*
/*> this is a
/*> multiple-line comment
/*> */
-> 1;
+-------+
| 1+
1 |
+-------+
| 2 |
+-------+
1 row in set (0.00 sec)
mysql>mysql注释方法四:使用/*! */
mysql> mysql> mysql> CREATE /*!32302 TEMPORARY */ TABLE t (a INT); Query OK, 0 rows affected (0.02 sec) mysql> mysql> desc t; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | a | int(11) | YES | | NULL | | +-------+---------+------+-----+---------+-------+ 1 row in set (0.00 sec) mysql> mysql> mysql> drop table t; Query OK, 0 rows affected (0.00 sec) mysql>









