I am trying to write a script which allows a user to select the what manipulation he needs to do on a table. I want to check if the table exists or not. If it exists I will continue the other things or else I exit saying table doesn't exist. How might I achieve this.
Mysql – From a shell script, how can I check whether a table in MySQL database exists or not
MySQLshellshell-scripting
Best Answer
-N
to skip column names-s
for nontabular output