10bet网址
MySQL Performance Schema
Related Documentation Download this Excerpt
PDF (US Ltr)- 1.2Mb
PDF (A4)- 1.2Mb


MySQL Performance Schema/Performance Schema Table Descriptions/ Performance Schema User-Defined Variable Tables

10.10 Performance Schema User-Defined Variable Tables

The Performance Schema provides auser_variables_by_threadtable that exposes user-defined variables. These are variables defined within a specific session and include a@character preceding the name; seeUser-Defined Variables.

Theuser_variables_by_threadtable 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.

Theuser_variables_by_threadtable has these indexes:

  • Primary key on (THREAD_ID,VARIABLE_NAME)

TRUNCATE TABLEis not permitted for theuser_variables_by_threadtable.