LOCK TABLES table1 AS `t1` READ LOCAL, table2 AS `t2` WRITE;