From 1ad3193e3b3d85f3fb30b393205a69c826d0c937 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 25 Mar 2020 15:17:09 +0800 Subject: [PATCH] sql: add explanation for different versions (#2076) --- reference/sql/statements/use.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/sql/statements/use.md b/reference/sql/statements/use.md index ec19f8e76f0f0..6287b5af192f1 100644 --- a/reference/sql/statements/use.md +++ b/reference/sql/statements/use.md @@ -71,7 +71,9 @@ mysql> SHOW TABLES; ## MySQL compatibility -This statement is understood to be fully compatible with MySQL. Any compatibility differences should be [reported via an issue](/report-issue.md) on GitHub. +In TiDB 2.0 versions, you can use `USE` statements to access any database. In TiDB 3.0 or later versions, TiDB checks whether you have the privilege to access the database when you use `USE` statements. + +Currently, `USE` statements are understood to be fully compatible with MySQL. Any compatibility differences should be [reported via an issue](/report-issue.md) on GitHub. ## See also