From c8ef49039c3f3c35ef8a09edf5b46d0a035bb963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Thu, 8 Apr 2021 17:07:51 +0200 Subject: [PATCH 1/2] user-defined-variables: Add note about SELECT...INTO --- user-defined-variables.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/user-defined-variables.md b/user-defined-variables.md index 0152254a783ed..58874d4bca639 100644 --- a/user-defined-variables.md +++ b/user-defined-variables.md @@ -179,4 +179,8 @@ SELECT @col FROM t; +------+ ``` +## MySQL compatibility + +The `SELECT ... INTO ` syntax is supported in MySQL but not in TiDB. Other than this the syntax supported by MySQL and TiDB is identical. + For more information, see [User-Defined Variables in MySQL](https://dev.mysql.com/doc/refman/5.7/en/user-variables.html). From 290965ddcb6e40aa01547399ab2e5e76d2abb292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 19 Apr 2021 10:15:36 +0200 Subject: [PATCH 2/2] Update user-defined-variables.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- user-defined-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user-defined-variables.md b/user-defined-variables.md index 58874d4bca639..470287ea2c608 100644 --- a/user-defined-variables.md +++ b/user-defined-variables.md @@ -181,6 +181,6 @@ SELECT @col FROM t; ## MySQL compatibility -The `SELECT ... INTO ` syntax is supported in MySQL but not in TiDB. Other than this the syntax supported by MySQL and TiDB is identical. +Except for `SELECT ... INTO `, the syntax supported in MySQL and TiDB is identical. For more information, see [User-Defined Variables in MySQL](https://dev.mysql.com/doc/refman/5.7/en/user-variables.html).