Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.0Mb
PDF (A4) - 35.1Mb
Man Pages (TGZ) - 255.5Kb
Man Pages (Zip) - 360.4Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

MySQL 5.7 Reference Manual  /  ...  /  Performance Schema User-Defined Variable Tables

25.12.10 Performance Schema User-Defined Variable Tables

The Performance Schema provides a user_variables_by_thread table that exposes user-defined variables. These are variables defined within a specific session and include a @ character preceding the name; see Section 9.4, “User-Defined Variables”.

The user_variables_by_thread table has these columns:

  • THREAD_ID

    The thread identifier of the session in which the variable is defined.

  • VARIABLE_NAME

    The variable name, without the leading @ character.

  • VARIABLE_VALUE

    The variable value.

TRUNCATE TABLE is not permitted for the user_variables_by_thread table.