query sql using shell script

query sql using shell script, is it possible?

my friend told me to do a file.sql and link to my shell script, but can i query sql using shell script?

thanks in advance!

Hello!

Per forum rules, and the benefit of all users, please search the forums before posting a question.

You can easily search the forums using our internal Google search engine or our advanced internal search engine. You can also search our huge UNIX and Linux database by user generated tags or search the database for unanswered questions and provide an answer.

Search for sql script.

Thank you.

The UNIX and Linux Forums

thanks!