Skip to content
Activities · Activity 9.3

Q.Type the statement show database; Does it show the name of StudentAttendance database?

Puducherry TnboardTextbookSubjective· 2mImportance★★★★★est
6% · 6/95 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The SHOW DATABASES; statement lists all databases on the server, not just one — it will include StudentAttendance among others, but does not "show the name" of a specific database.

This is a plain theory question about MySQL/SQL command behaviour.

The command SHOW DATABASES; is a MySQL-specific administrative statement. Its purpose is to display a list of every database that exists on the MySQL server instance you are connected to. It returns a result set with one column (named Database) and one row per database.

If the StudentAttendance database has been created on that server, it will appear as one of the rows in the output. But the command does not isolate or "show the name of" a single database — it shows all of them. To see only the name of the currently selected (active) database, you would use SELECT DATABASE(); instead. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.