1SET @start_global_value = @@global.sql_select_limit;
2SELECT @start_global_value;
3@start_global_value
418446744073709551615
5select @@global.sql_select_limit;
6@@global.sql_select_limit
718446744073709551615
8select @@session.sql_select_limit;
9@@session.sql_select_limit
1018446744073709551615
11show global variables like 'sql_select_limit';
12Variable_name	Value
13sql_select_limit	18446744073709551615
14show session variables like 'sql_select_limit';
15Variable_name	Value
16sql_select_limit	18446744073709551615
17select * from information_schema.global_variables where variable_name='sql_select_limit';
18VARIABLE_NAME	VARIABLE_VALUE
19SQL_SELECT_LIMIT	18446744073709551615
20select * from information_schema.session_variables where variable_name='sql_select_limit';
21VARIABLE_NAME	VARIABLE_VALUE
22SQL_SELECT_LIMIT	18446744073709551615
23set global sql_select_limit=10;
24set session sql_select_limit=20;
25select @@global.sql_select_limit;
26@@global.sql_select_limit
2710
28select @@session.sql_select_limit;
29@@session.sql_select_limit
3020
31show global variables like 'sql_select_limit';
32Variable_name	Value
33sql_select_limit	10
34show session variables like 'sql_select_limit';
35Variable_name	Value
36sql_select_limit	20
37select * from information_schema.global_variables where variable_name='sql_select_limit';
38VARIABLE_NAME	VARIABLE_VALUE
39SQL_SELECT_LIMIT	10
40select * from information_schema.session_variables where variable_name='sql_select_limit';
41VARIABLE_NAME	VARIABLE_VALUE
42SQL_SELECT_LIMIT	20
43set global sql_select_limit=1.1;
44ERROR 42000: Incorrect argument type to variable 'sql_select_limit'
45set global sql_select_limit=1e1;
46ERROR 42000: Incorrect argument type to variable 'sql_select_limit'
47set global sql_select_limit="foo";
48ERROR 42000: Incorrect argument type to variable 'sql_select_limit'
49SET @@global.sql_select_limit = @start_global_value;
50SELECT @@global.sql_select_limit;
51@@global.sql_select_limit
5218446744073709551615
53