USE keyword is used to select a ___________ .

  1. Table

  2. Column

  3. Database

  4. All the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the purpose of the SQL keyword "USE".

The "USE" keyword in SQL is used to select a specific database. It allows you to switch between databases in a multi-database environment. Once a database is selected using the "USE" keyword, all subsequent SQL statements will be executed in the context of that database.

Let's go through each option to understand why it is correct or incorrect:

Option A) Table - This option is incorrect. The "USE" keyword is not used to select a table. Instead, the "SELECT" statement is used to retrieve data from a table.

Option B) Column - This option is incorrect. The "USE" keyword is not used to select a column. Columns are selected using the "SELECT" statement.

Option C) Database - This option is correct. The "USE" keyword is used to select a specific database in SQL. It allows you to switch between databases.

Option D) All the above - This option is incorrect. The "USE" keyword is not used to select tables or columns. It is specifically used to select databases.

The correct answer is option C. This option is correct because the "USE" keyword is used to select a specific database.

Find more quizzes: