Vidyalelo
MySQL · Q944

MySQL

Programming · MySQL · question 944

Q944

Which option prints output in table-format when MySQL is run interactively?

A.
-t
Answer
B.
-tf
C.
-p
D.
-pf

Answer: Option A

Solution

Answer: Option A
Solution:
This question asks about how to display the output of a MySQL command in a table-like format when you're working with it directly.

Let's break down the options:
Option A: -t
This is the correct option! The `-t` flag in MySQL is specifically designed to format your query results into a neat, table-like layout. It helps make your data easier to read and understand.
Option B: -tf
This option doesn't actually exist in MySQL. It's not a recognized flag.
Option C: -p
The `-p` flag tells MySQL that you want to provide your password securely. It doesn't have anything to do with table formatting.
Option D: -pf
Like option B, this is not a valid flag in MySQL.
Therefore, the answer is Option A: -t