MySQL创建存储过程保留注释内容

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/launch_225/article/details/79471550

mysql 5.5  linux环境

问题:

每次创建完过程后写上的注释全部会被去掉,造成后续看脚本或维护时狠痛苦;


解决方式:

用客户端连接数据库时加入选项: --comments 或者 --comment

原文档说明 :

--comments, -c

Whether to preserve comments in statements sent to the server. The default is --skip-comments (discard
comments), enable with --comments (preserve comments).


猜你喜欢

转载自blog.csdn.net/launch_225/article/details/79471550