⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myisam-big-rows.tst

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻 TST
字号:
## Test rows with length above > 16M# Note that for this to work, you should start mysqld with# -O max_allowed_packet=32M#drop table if exists t1;create table t1 (a tinyint not null auto_increment, b longblob not null, primary key (a)) checksum=1;insert into t1 (b) values(repeat(char(65),10));insert into t1 (b) values(repeat(char(66),10));insert into t1 (b) values(repeat(char(67),10));update t1 set b=repeat(char(68),16777216) where a=1;check table t1;update t1 set b=repeat(char(69),16777000) where a=2;update t1 set b=repeat(char(70),167) where a=3;update t1 set b=repeat(char(71),16778000) where a=1;update t1 set b=repeat(char(72),16778000) where a=3;select a,length(b) from t1;set @a=1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));update t1 set b=('A') where a=5;delete from t1 where a=7;set @a=@a+1;insert into t1 (b) values (repeat(char(73+@a),16777200+@a));update t1 set b=repeat(char(73+@a+1),17000000+@a) where a=last_insert_id();select a,mid(b,1,5),length(b) from t1;check table t1;repair table t1;check table t1;select a from table where b<>repeat(mid(b,1,1),length(b));delete from t1 where (a & 1);select a from table where b<>repeat(mid(b,1,1),length(b));check table t1;repair table t1;check table t1;drop table t1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -