数据库DELIMITER语句
时间: 2023-09-25 21:07:13 浏览: 91
引用中提到,DELIMITER在MySQL中用于告诉MySQL解释器命令段是否已经结束,以及MySQL是否可以执行命令。DELIMITER语句并不是MySQL的特定语法,而是用于控制MySQL命令解析器的语句分隔符,它可以用于存储过程、触发器、函数等场景中。通过设置DELIMITER,可以改变MySQL默认的命令分隔符(默认为分号“;”),从而允许在命令段中使用分号。这样可以解决在存储过程、触发器、函数等复杂语句中使用分号带来的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [MySQL数据库:流程控制语句repeat.pptx](https://download.csdn.net/download/u011062044/85490936)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [MySQL中delimiter作用](https://blog.csdn.net/kouzhili1792/article/details/128149721)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文