MySQL Forums
Forum List  »  Newbie

BASH COMMAND TO SEARCH AND DELETE ALL EMPTY TABLES IN A DATABASE
Posted by: Eric Jason Notts
Date: November 27, 2015 10:59AM

Hello guys,

I wrote a bash script that loads file in my database but since some of these files don't exists, my scripts creates the same the tables.

So my question is: Is there a script, in bash or other linux language to search for empty tables and delete them?

I would like to stress the importance of a prompt reply as I need this script completed for my work.

Thanks

Options: ReplyQuote


Subject
Written By
Posted
BASH COMMAND TO SEARCH AND DELETE ALL EMPTY TABLES IN A DATABASE
November 27, 2015 10:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.