Home  >  Article  >  Database  >  Summary of statements in mysql that can be executed without ending symbols

Summary of statements in mysql that can be executed without ending symbols

黄舟
黄舟Original
2017-09-09 15:20:412308browse

It is well known that every executable statement executed by mysql ends with a semicolon , that is to say, mysql Identifying whether a statement ends is determined by the semicolon.

Of course, you can also use DELIMITER to customize the end symbol of a statement.

I don’t know if you have noticed that , there are also some statements that do not require end symbols. For example:

mysql> use trains
Database changed

Obviously, using the USE TRAINS statement to specify the use of a certain database does not require the end symbol. Of course, you can add the end symbol.

Of course, the execution of the EXIT (exit) command does not require an end symbol.

If you have anything to add, please reply to me below.

The above is the detailed content of Summary of statements in mysql that can be executed without ending symbols. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn