blob: a92d275dbbaab55d0a4e4a272cb3c874df1ae60e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
select @@global.date_format;
@@global.date_format
%Y-%m-%d
select @@session.date_format;
ERROR HY000: Variable 'date_format' is a GLOBAL variable
show global variables like 'date_format';
Variable_name Value
date_format %Y-%m-%d
show session variables like 'date_format';
Variable_name Value
date_format %Y-%m-%d
select * from information_schema.global_variables where variable_name='date_format';
VARIABLE_NAME VARIABLE_VALUE
DATE_FORMAT %Y-%m-%d
select * from information_schema.session_variables where variable_name='date_format';
VARIABLE_NAME VARIABLE_VALUE
DATE_FORMAT %Y-%m-%d
set global date_format="foo";
ERROR HY000: Variable 'date_format' is a read only variable
set session date_format="foo";
ERROR HY000: Variable 'date_format' is a read only variable
|