382
382
Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where (((`test`.`t1`.`a` - 1) = (`test`.`t2`.`a` - 1)) and (`test`.`t1`.`b` = (`test`.`t2`.`b` + 1)))
383
383
SELECT * FROM t1,t2 WHERE (t1.a-1,t1.b)=(t2.a-1,t2.b+1);
389
389
EXPLAIN SELECT * FROM t2 WHERE a=3 AND b=2;
390
390
id select_type table type possible_keys key key_len ref rows Extra
391
391
1 SIMPLE t2 ref PRIMARY PRIMARY 8 const,const 1 Using index