Can you form legal statement in MySQL without using semicolon?

给你一囗甜甜゛ 提交于 2019-12-13 03:39:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!