variables.result
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 822 行 · 第 1/2 页
RESULT
822 行
set sql_safe_updates=1;set sql_select_limit=1;set sql_select_limit=default;set sql_warnings=1;set global table_cache=100;set storage_engine=myisam;set global thread_cache_size=100;set timestamp=1, timestamp=default;set tmp_table_size=100;set tx_isolation="READ-COMMITTED";set wait_timeout=100;set log_warnings=1;select @@session.insert_id;@@session.insert_id1set @save_insert_id=@@session.insert_id;set session insert_id=20;select @@session.insert_id;@@session.insert_id20set session last_insert_id=100;select @@session.insert_id;@@session.insert_id20select @@session.last_insert_id;@@session.last_insert_id100select @@session.insert_id;@@session.insert_id20set @@session.insert_id=@save_insert_id;select @@session.insert_id;@@session.insert_id1create table t1 (a int not null auto_increment, primary key(a));create table t2 (a int not null auto_increment, primary key(a));insert into t1 values(null),(null),(null);insert into t2 values(null),(null),(null);set global key_buffer_size=100000;select @@key_buffer_size;@@key_buffer_size98304select * from t1 where a=2;a2select * from t2 where a=3;a3check table t1,t2;Table Op Msg_type Msg_texttest.t1 check status OKtest.t2 check status OKselect max(a) +1, max(a) +2 into @xx,@yy from t1;drop table t1,t2;select @@xxxxxxxxxx;ERROR HY000: Unknown system variable 'xxxxxxxxxx'select 1;11select @@session.key_buffer_size;ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variableset ft_boolean_syntax = @@init_connect;ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBALset global ft_boolean_syntax = @@init_connect;ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of ''set init_connect = NULL;ERROR HY000: Variable 'init_connect' is a GLOBAL variable and should be set with SET GLOBALset global init_connect = NULL;set ft_boolean_syntax = @@init_connect;ERROR HY000: Variable 'ft_boolean_syntax' is a GLOBAL variable and should be set with SET GLOBALset global ft_boolean_syntax = @@init_connect;ERROR 42000: Variable 'ft_boolean_syntax' can't be set to the value of ''set global myisam_max_sort_file_size=4294967296;show global variables like 'myisam_max_sort_file_size';Variable_name Valuemyisam_max_sort_file_size MAX_FILE_SIZEset global myisam_max_sort_file_size=default;select @@global.max_user_connections,@@local.max_join_size;@@global.max_user_connections @@local.max_join_size100 200set @svc=@@global.max_user_connections, @svj=@@local.max_join_size;select @@global.max_user_connections,@@local.max_join_size;@@global.max_user_connections @@local.max_join_size100 200set @@global.max_user_connections=111,@@local.max_join_size=222;select @@global.max_user_connections,@@local.max_join_size;@@global.max_user_connections @@local.max_join_size111 222set @@global.max_user_connections=@@local.max_join_size,@@local.max_join_size=@@global.max_user_connections;select @@global.max_user_connections,@@local.max_join_size;@@global.max_user_connections @@local.max_join_size222 111set @@global.max_user_connections=@svc, @@local.max_join_size=@svj;select @@global.max_user_connections,@@local.max_join_size;@@global.max_user_connections @@local.max_join_size100 200set @a=1, @b=2;set @a=@b, @b=@a;select @a, @b;@a @b2 1set @@global.global.key_buffer_size= 1;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size= 1' at line 1set GLOBAL global.key_buffer_size= 1;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size= 1' at line 1SELECT @@global.global.key_buffer_size;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size' at line 1SELECT @@global.session.key_buffer_size;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size' at line 1SELECT @@global.local.key_buffer_size;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size' at line 1set @tstlw = @@log_warnings;show global variables like 'log_warnings';Variable_name Valuelog_warnings 1set global log_warnings = 0;show global variables like 'log_warnings';Variable_name Valuelog_warnings 0set global log_warnings = 42;show global variables like 'log_warnings';Variable_name Valuelog_warnings 42set global log_warnings = @tstlw;show global variables like 'log_warnings';Variable_name Valuelog_warnings 1create table t1 (c1 tinyint,c2 smallint,c3 mediumint,c4 int,c5 bigint);show create table t1;Table Create Tablet1 CREATE TABLE `t1` ( `c1` tinyint(4) default NULL, `c2` smallint(6) default NULL, `c3` mediumint(9) default NULL, `c4` int(11) default NULL, `c5` bigint(20) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1drop table t1;set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;create table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;show create table t1;Table Create Tablet1 CREATE TABLE `t1` ( `c1` bigint(20) default NULL, `c2` decimal(65,30) default NULL, `c3` longtext, `c4` double default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1drop table t1;SET GLOBAL MYISAM_DATA_POINTER_SIZE= 7;SHOW VARIABLES LIKE 'MYISAM_DATA_POINTER_SIZE';Variable_name Valuemyisam_data_pointer_size 7SET GLOBAL table_cache=-1;SHOW VARIABLES LIKE 'table_cache';Variable_name Valuetable_cache 1SET GLOBAL table_cache=DEFAULT;set character_set_results=NULL;select ifnull(@@character_set_results,"really null");ifnull(@@character_set_results,"really null")really nullset names latin1;select @@have_innodb;@@have_innodb#*** Various tests with LC_TIME_NAMES*** LC_TIME_NAMES: testing case insensitivityset @@lc_time_names='ru_ru';select @@lc_time_names;@@lc_time_namesru_RU*** LC_TIME_NAMES: testing with a user variableset @lc='JA_JP';set @@lc_time_names=@lc;select @@lc_time_names;@@lc_time_namesja_JP*** LC_TIME_NAMES: testing with string expressionsset lc_time_names=concat('de','_','DE');select @@lc_time_names;@@lc_time_namesde_DEset lc_time_names=concat('de','+','DE');ERROR HY000: Unknown locale: 'de+DE'select @@lc_time_names;@@lc_time_namesde_DELC_TIME_NAMES: testing with numeric expressionsset @@lc_time_names=1+2;select @@lc_time_names;@@lc_time_namessv_SEset @@lc_time_names=1/0;ERROR 42000: Incorrect argument type to variable 'lc_time_names'select @@lc_time_names;@@lc_time_namessv_SEset lc_time_names=en_US;LC_TIME_NAMES: testing NULL and a negative number:set lc_time_names=NULL;ERROR 42000: Variable 'lc_time_names' can't be set to the value of 'NULL'set lc_time_names=-1;ERROR HY000: Unknown locale: '-1'select @@lc_time_names;@@lc_time_namesen_USLC_TIME_NAMES: testing locale with the last ID:set lc_time_names=108;select @@lc_time_names;@@lc_time_nameszh_HKLC_TIME_NAMES: testing a number beyond the valid ID range:set lc_time_names=109;ERROR HY000: Unknown locale: '109'select @@lc_time_names;@@lc_time_nameszh_HKLC_TIME_NAMES: testing that 0 is en_US:set lc_time_names=0;select @@lc_time_names;@@lc_time_namesen_USselect @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesen_US en_USset @@global.lc_time_names=fr_FR;select @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesfr_FR en_USNew connectionselect @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesfr_FR fr_FRset @@lc_time_names=ru_RU;select @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesfr_FR ru_RUReturnung to default connectionselect @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesfr_FR en_USset lc_time_names=default;select @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesfr_FR fr_FRset @@global.lc_time_names=default;select @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesen_US fr_FRset @@lc_time_names=default;select @@global.lc_time_names, @@lc_time_names;@@global.lc_time_names @@lc_time_namesen_US en_USset @test = @@query_prealloc_size;set @@query_prealloc_size = @test;select @@query_prealloc_size = @test;@@query_prealloc_size = @test1create table t1 (a int);select a into @x from t1;Warnings:Warning 1329 No data - zero rows fetched, selected, or processedshow warnings;Level Code MessageWarning 1329 No data - zero rows fetched, selected, or processeddrop table t1;set @@warning_count=1;ERROR HY000: Variable 'warning_count' is a read only variableset @@global.error_count=1;ERROR HY000: Variable 'error_count' is a read only variableset @@max_heap_table_size= 4294967296;select @@max_heap_table_size > 0;@@max_heap_table_size > 01set global max_heap_table_size= 4294967296;select @@max_heap_table_size > 0;@@max_heap_table_size > 01set @@max_heap_table_size= 4294967296;select @@max_heap_table_size > 0;@@max_heap_table_size > 01select @@character_set_system;@@character_set_systemutf8set global character_set_system = latin1;ERROR HY000: Variable 'character_set_system' is a read only variableset @@global.version_compile_os='234';ERROR HY000: Variable 'version_compile_os' is a read only variableset character_set_filesystem=latin1;select @@character_set_filesystem;@@character_set_filesystemlatin1set @@global.character_set_filesystem=latin2;set character_set_filesystem=latin1;select @@character_set_filesystem;@@character_set_filesystemlatin1set @@global.character_set_filesystem=latin2;set character_set_filesystem=default;select @@character_set_filesystem;@@character_set_filesystemlatin2set @@global.character_set_filesystem=default;select @@global.character_set_filesystem;@@global.character_set_filesystembinaryset @old_sql_big_selects = @@sql_big_selects;set @@sql_big_selects = 1;show variables like 'sql_big_selects';Variable_name Valuesql_big_selects ONset @@sql_big_selects = @old_sql_big_selects;set @@sql_notes = 0, @@sql_warnings = 0;show variables like 'sql_notes';Variable_name Valuesql_notes OFFshow variables like 'sql_warnings';Variable_name Valuesql_warnings OFFset @@sql_notes = 1, @@sql_warnings = 1;show variables like 'sql_notes';Variable_name Valuesql_notes ONshow variables like 'sql_warnings';Variable_name Valuesql_warnings ONselect @@system_time_zone;@@system_time_zone#select @@version, @@version_comment, @@version_compile_machine,@@version_compile_os;@@version @@version_comment @@version_compile_machine @@version_compile_os# # # #select @@basedir, @@datadir, @@tmpdir;@@basedir @@datadir @@tmpdir# # #show variables like 'basedir';Variable_name Valuebasedir #show variables like 'datadir';Variable_name Valuedatadir #show variables like 'tmpdir';Variable_name Valuetmpdir #select @@ssl_ca, @@ssl_capath, @@ssl_cert, @@ssl_cipher, @@ssl_key;@@ssl_ca @@ssl_capath @@ssl_cert @@ssl_cipher @@ssl_key# # # # #show variables like 'ssl%';Variable_name Valuessl_ca #ssl_capath #ssl_cert #ssl_cipher #ssl_key #select @@log_queries_not_using_indexes;@@log_queries_not_using_indexes0show variables like 'log_queries_not_using_indexes';Variable_name Valuelog_queries_not_using_indexes OFFselect @@"";ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '""' at line 1select @@&;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&' at line 1select @@@;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@' at line 1select @@hostname;@@hostname#set @@hostname= "anothername";ERROR HY000: Variable 'hostname' is a read only variableshow variables like 'hostname';Variable_name Valuehostname #End of 5.0 testsset global binlog_cache_size =@my_binlog_cache_size;set global connect_timeout =@my_connect_timeout;set global delayed_insert_timeout =@my_delayed_insert_timeout;set global delayed_queue_size =@my_delayed_queue_size;set global flush =@my_flush;set global flush_time =@my_flush_time;set global key_buffer_size =@my_key_buffer_size;set global max_binlog_cache_size =default;set global max_binlog_size =@my_max_binlog_size;set global max_connect_errors =@my_max_connect_errors;set global max_delayed_threads =@my_max_delayed_threads;set global max_heap_table_size =@my_max_heap_table_size;set global max_insert_delayed_threads=@my_max_insert_delayed_threads;set global max_join_size =@my_max_join_size;set global max_user_connections =@my_max_user_connections;set global max_write_lock_count =@my_max_write_lock_count;set global myisam_data_pointer_size =@my_myisam_data_pointer_size;set global net_buffer_length =@my_net_buffer_length;set global net_write_timeout =@my_net_write_timeout;set global net_read_timeout =@my_net_read_timeout;set global query_cache_limit =@my_query_cache_limit;set global query_cache_type =@my_query_cache_type;set global rpl_recovery_rank =@my_rpl_recovery_rank;set global server_id =@my_server_id;set global slow_launch_time =@my_slow_launch_time;set global storage_engine =@my_storage_engine;set global thread_cache_size =@my_thread_cache_size;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?