Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-defined-variables: Add note about SELECT...INTO <var> #5268

Merged
merged 2 commits into from
Apr 19, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions user-defined-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,8 @@ SELECT @col FROM t;
+------+
```

## MySQL compatibility

The `SELECT ... INTO <variable>` syntax is supported in MySQL but not in TiDB. Other than this the syntax supported by MySQL and TiDB is identical.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

For more information, see [User-Defined Variables in MySQL](https://dev.mysql.com/doc/refman/5.7/en/user-variables.html).