1

I wrote sql queries on terminal. I am not able to find out the output of that query. Can anyone help me from where I will get the output .

2

2 Answers 2

1

You can run queries on terminal like this:

mysql -u user -p -e 'Your SQL Query Here' <database-name>
Sign up to request clarification or add additional context in comments.

Comments

0

When you are in mysql terminal use:

mysql> \T /tmp/query.out
Logging to file 'query.out'

All queries output will be stored in /tmp/query.out file.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.