不知道能不能这样.在锁d表的同时,在锁一次a b c表呢.
begin
lock tables a write,b write,c write
lock tables a write,b write,c write,d write
unlock tables
end