在不同的 mysql 版本中,很多特性和语法有可能是不一样的,想要知道当前版本
的语法,最好的办法是学会使用 mysql 的帮助。方法很简单:
mysql> ? contents
You asked for help about help category: "Contents" For more information, type 'help <item>', where <item> is one of the following categories: Account Management Administration Compound Statements Data Definition Data Manipulation ...
mysql> ? data types
mysql> ? create table都是以问号?开头来读取帮助文档的。