Home > Database > Mysql Tutorial > body text

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

黄舟
Release: 2017-09-09 15:20:41
Original
2317 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template