A

Admin • 833K Points
Coach

Q. Suppose you want to select a database named 'sampledb' as the default database. Which of the following commands do you use?

  • (A) SELECT DATABASE()
  • (B) SELECT DATABASE sampledb
  • (C) USE DATABASE sampledb
  • (D) USE sampledb
  • Correct Answer - Option(D)
  • Views: 18
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin

This question is about how to tell MySQL which database you want to work with. Imagine you have multiple folders on your computer, and you want to work in a specific folder. In MySQL, you have different databases, and you need to choose the one you want to use.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.