If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Depending on your version of MySQL you'll most likely have to write a stored procedure in MySQL to do the data check, or write another .sql file to call a COUNT(*) on your table and have the bash script contain the "if" logic.