This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15126|Reply: 0

[Source] Modify the usage of the command terminator delimiter in MySQL

[Copy link]
Posted on 10/11/2016 9:13:45 AM | | |

How to modify the command terminator delimiter in MySQL:
The delimiter in MySQL will tell the MySQL interpreter what the ending character of the command is, and by default MySQL commands are written with a semicolon (; Ended. After encountering (; MySQL can execute the command.
See the following example:
mysql>delimiter $
It tells the MySQL interpreter to execute the command when it encounters $.
Example 1: mysql>select * from temp; #回车时就会执行这条语句
Example 2: mysql>delimiter$
mysql>select * from temp; #回车时不会执行
->$#在此回车才会执行上述语句
mysql>delimiter ; #将命令结束符重新设定为(; )
Usually, we use it when creating stored procedures, functions, and views!




Previous:The C# string MD5 is encrypted into 16 and 32 bits
Next:C# preprocessor instructions
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com