Currently, I am able to output the MySQL query result into an Excel sheet but I am looking for ways to output different queries into the same Excel sheet but into a different tab. Is it possible to do that using shell script?
My shell script currently has this line of code.
docker exec -it mysql3 mysql -uroot -ppassword project -B -e "select * from ITEMS;" | tail -n +2 > query.xlsx