Get MySQL Interactive Output Format in Batch Mode



We can get the MySQL output format in batch mode with the help of –t option. For example, after running the same query in batch mode with –t option we will get the output like interactive format.

Example

C:\Program Files\MySQL\bin>mysql -u root -p gaurav < hh.sql -t
Enter password: *****

Output

+------+
| id   |
+------+
| 1    |
| 2    |
+------+
Updated on: 2020-06-22T04:59:20+05:30

362 Views

Kickstart Your Career

Get certified by completing the course

Get Started