1drop table if exists tab; 2drop table if exists tbc; 3create table tab (a int, b int) engine=tokudb; 4insert into tab values (1,1),(2,1),(2,2),(3,1),(3,2),(3,3); 5select * from tab; 6a b 71 1 82 1 92 2 103 1 113 2 123 3 13create table tbc (b int, c int) engine=innodb; 14insert into tbc values (2,4),(3,9),(3,27),(4,1); 15select * from tbc; 16b c 172 4 183 9 193 27 204 1 21select a,tab.b,c from tab join tbc on tab.b = tbc.b; 22a b c 232 2 4 243 2 4 253 3 9 263 3 27 27select a,tab.b,tbc.b,c from tab join tbc on tab.b < tbc.b; 28a b b c 291 1 2 4 301 1 3 9 311 1 3 27 321 1 4 1 332 1 2 4 342 1 3 9 352 1 3 27 362 1 4 1 372 2 3 9 382 2 3 27 392 2 4 1 403 1 2 4 413 1 3 9 423 1 3 27 433 1 4 1 443 2 3 9 453 2 3 27 463 2 4 1 473 3 4 1 48select a,tab.b,tbc.b,c from tab join tbc on tab.b > tbc.b; 49a b b c 503 3 2 4 51drop table tab; 52drop table tbc; 53