- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
query_cache_notembedded.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:2k
源码类别:
MySQL数据库
开发平台:
Visual C++
- set GLOBAL query_cache_size=1355776;
- flush query cache;
- flush query cache;
- reset query cache;
- flush status;
- drop table if exists t1, t2, t3, t11, t21;
- create table t1 (a int not null);
- insert into t1 values (1),(2),(3);
- create table t2 (a int not null);
- insert into t2 values (1),(2),(3);
- select * from t1;
- a
- 1
- 2
- 3
- select * from t2;
- a
- 1
- 2
- 3
- insert into t1 values (4);
- show status like "Qcache_free_blocks";
- Variable_name Value
- Qcache_free_blocks 2
- flush query cache;
- show status like "Qcache_free_blocks";
- Variable_name Value
- Qcache_free_blocks 1
- drop table t1, t2;
- create table t1 (a text not null);
- create table t11 (a text not null);
- create table t2 (a text not null);
- create table t21 (a text not null);
- create table t3 (a text not null);
- insert into t1 values("1111111111111111111111111111111111111111111111111111");
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t11 select * from t1;
- insert into t21 select * from t1;
- insert into t1 select * from t2;
- insert into t2 select * from t1;
- insert into t1 select * from t2;
- insert into t3 select * from t1;
- insert into t3 select * from t2;
- insert into t3 select * from t1;
- select * from t11;
- select * from t21;
- show status like "Qcache_total_blocks";
- Variable_name Value
- Qcache_total_blocks 7
- show status like "Qcache_free_blocks";
- Variable_name Value
- Qcache_free_blocks 1
- insert into t11 values("");
- select * from t3;
- show status like "Qcache_total_blocks";
- Variable_name Value
- Qcache_total_blocks 8
- show status like "Qcache_free_blocks";
- Variable_name Value
- Qcache_free_blocks 1
- flush query cache;
- show status like "Qcache_total_blocks";
- Variable_name Value
- Qcache_total_blocks 7
- show status like "Qcache_free_blocks";
- Variable_name Value
- Qcache_free_blocks 1
- drop table t1, t2, t3, t11, t21;
- CREATE TABLE t1 ( a INT NOT NULL PRIMARY KEY AUTO_INCREMENT ) ENGINE =
- MyISAM;
- LOCK TABLE t1 READ LOCAL;
- INSERT INTO t1 VALUES (), (), ();
- SELECT * FROM t1;
- a
- SELECT * FROM t1;
- a
- 1
- 2
- 3
- SELECT * FROM t1;
- a
- drop table t1;
- set GLOBAL query_cache_size=0;