1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
SET @start_value = @@big_tables;
SELECT @start_value;
@start_value
0
'#--------------------FN_DYNVARS_005_01------------------------#'
SET @@big_tables = 1;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SET @@big_tables = DEFAULT;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
0
'#--------------------FN_DYNVARS_005_02------------------------#'
SET @@big_tables = 0;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
0
SET @@big_tables = 1;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
1
'#--------------------FN_DYNVARS_005_03-------------------------#'
SET @@big_tables = 2;
ERROR 42000: Variable 'big_tables' can't be set to the value of '2'
SET @@big_tables = -1;
ERROR 42000: Variable 'big_tables' can't be set to the value of '-1'
SET @@big_tables = TRUEF;
ERROR 42000: Variable 'big_tables' can't be set to the value of 'TRUEF'
SET @@big_tables = TRUE_F;
ERROR 42000: Variable 'big_tables' can't be set to the value of 'TRUE_F'
SET @@big_tables = FALSE0;
ERROR 42000: Variable 'big_tables' can't be set to the value of 'FALSE0'
SET @@big_tables = OON;
ERROR 42000: Variable 'big_tables' can't be set to the value of 'OON'
SET @@big_tables = ONN;
ERROR 42000: Variable 'big_tables' can't be set to the value of 'ONN'
SET @@big_tables = OOFF;
ERROR 42000: Variable 'big_tables' can't be set to the value of 'OOFF'
SET @@big_tables = 0FF;
ERROR 42000: Variable 'big_tables' can't be set to the value of '0FF'
SET @@big_tables = ' ';
ERROR 42000: Variable 'big_tables' can't be set to the value of ' '
SET @@big_tables = " ";
ERROR 42000: Variable 'big_tables' can't be set to the value of ' '
SET @@big_tables = '';
ERROR 42000: Variable 'big_tables' can't be set to the value of ''
'#-------------------FN_DYNVARS_005_04----------------------------#'
SET @@global.big_tables = 1-@@global.big_tables;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@global.big_tables;
@@global.big_tables
1
SET @@global.big_tables = 1-@@global.big_tables;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
'#----------------------FN_DYNVARS_005_05------------------------#'
SELECT IF(@@big_tables, "ON", "OFF") = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='big_tables';
IF(@@big_tables, "ON", "OFF") = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_005_06----------------------#'
SET @@big_tables = OFF;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
0
SET @@big_tables = ON;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
1
'#---------------------FN_DYNVARS_005_07----------------------#'
SET @@big_tables = TRUE;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
1
SET @@big_tables = FALSE;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
0
'#---------------------FN_DYNVARS_005_08----------------------#'
SET @@big_tables = 0;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables = @@session.big_tables;
@@big_tables = @@session.big_tables
1
SET @@big_tables = 1;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables = @@local.big_tables and @@local.big_tables = @@session.big_tables;
@@big_tables = @@local.big_tables and @@local.big_tables = @@session.big_tables
1
'#---------------------FN_DYNVARS_005_09----------------------#'
SET big_tables = 1;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
1
SELECT local.big_tables;
ERROR 42S02: Unknown table 'local' in SELECT
SELECT session.big_tables;
ERROR 42S02: Unknown table 'session' in SELECT
select big_tables;
ERROR 42S22: Unknown column 'big_tables' in 'SELECT'
SET @@big_tables = @start_value;
Warnings:
Warning 1287 '@@big_tables' is deprecated and will be removed in a future release
SELECT @@big_tables;
@@big_tables
0
|