table sql whole run issue fixed