Hey.
Question by mysql. Reached variables and stored procedures. Here is the source http: //xn----9sbcmrygis2b.xn--p1ai/mysql/ANSI_diff_Triggers.html . I realized that there are two types of variables: user variables and stored procedure / function variables. The programmer creates these variables by hand. User variables are issued inside the procedure / function, but stored procedure / function variables are not visible from the outside. That is, the concept of scope in mysql also works + should still be, in theory, the namespace (as in other programming languages) of the global code and the local procedure / function code. What is the namespace in mysql?
I do not understand about system variables. They write that the MySQL server supports a large number of system variables with the help of which you can make the so-called "fine tuning". To get a complete list of system variables in the console client mysql, you can use the SHOW VARIABLES command;
They write that there are two types of system variables: flow-specific (or for a connection; we hereinafter call them flow variables for short) that are unique to a given connection and global variables that are intended to control global events. Global variables are also used to set default values for corresponding stream variables for new connections.
This is not clear to me - why did the system variables be divided into session and global system variables?
Why do these system variables come up, if you can get into my.ini and configure everything?
What place (where do they lie) do these system variables occupy in the namespace?
It is impossible to "sort through" what is in mysql.