问题
I am starting to learn SQL using MySQL and I got my hands on book "SQL for MySQL Developers: A Comprehensive Tutorial and Reference".
Why the author doesn't place semicolons ;
at the end of the statements?
Can you form legal statement in MySQL without using semicolon?
Here is an example pulled right from the book (p.45)
CREATE DATABASE TENNIS
. Of course, MySQL shell responds by ->
.
回答1:
Many flavors and applications of SQL
require a semi-colon at the end. A few do not.
来源:https://stackoverflow.com/questions/14764492/can-you-form-legal-statement-in-mysql-without-using-semicolon