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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
|
set global max_allowed_packet=400000000;
connect root,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK;
connection root;
set default_storage_engine=aria;
affected rows: 0
drop table if exists t1, t2;
affected rows: 0
create table t1(a char(3));
affected rows: 0
insert into t1 values("abc");
affected rows: 1
insert into t1 select "def" from t1;
affected rows: 1
info: Records: 1 Duplicates: 0 Warnings: 0
insert into t1 select "ghi" from t1;
affected rows: 2
info: Records: 2 Duplicates: 0 Warnings: 0
insert into t1 select "jkl" from t1;
affected rows: 4
info: Records: 4 Duplicates: 0 Warnings: 0
insert into t1 select "mno" from t1;
affected rows: 8
info: Records: 8 Duplicates: 0 Warnings: 0
insert into t1 select "pqr" from t1;
affected rows: 16
info: Records: 16 Duplicates: 0 Warnings: 0
insert into t1 select "stu" from t1;
affected rows: 32
info: Records: 32 Duplicates: 0 Warnings: 0
insert into t1 select "vwx" from t1;
affected rows: 64
info: Records: 64 Duplicates: 0 Warnings: 0
insert into t1 select "yza" from t1;
affected rows: 128
info: Records: 128 Duplicates: 0 Warnings: 0
insert into t1 select "ceg" from t1;
affected rows: 256
info: Records: 256 Duplicates: 0 Warnings: 0
insert into t1 select "ikm" from t1;
affected rows: 512
info: Records: 512 Duplicates: 0 Warnings: 0
insert into t1 select "oqs" from t1;
affected rows: 1024
info: Records: 1024 Duplicates: 0 Warnings: 0
select count(*) from t1;
count(*)
2048
affected rows: 1
insert into t1 select "uwy" from t1;
affected rows: 2048
info: Records: 2048 Duplicates: 0 Warnings: 0
create table t2 select * from t1;
affected rows: 4096
info: Records: 4096 Duplicates: 0 Warnings: 0
select count(*) from t1;
count(*)
4096
affected rows: 1
select count(*) from t2;
count(*)
4096
affected rows: 1
drop table t1, t2;
affected rows: 0
create table t1 (a int, b longtext);
affected rows: 0
insert into t1 values (1,"123456789012345678901234567890"),(2,"09876543210987654321");
affected rows: 2
info: Records: 2 Duplicates: 0 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=CONCAT(b,b);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
select a,length(b) from t1;
a length(b)
1 251658240
2 167772160
affected rows: 2
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
affected rows: 1
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
update t1 set b=mid(b,1,length(b)/2);
affected rows: 2
info: Rows matched: 2 Changed: 2 Warnings: 0
select a,length(b) from t1;
a length(b)
1 60
2 40
affected rows: 2
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
affected rows: 1
drop table t1;
affected rows: 0
|