What SQL statement returns the version of MySQL currently in use? Group of answer…
- User
What SQL statement returns the version of MySQL currently in use? Group of answer choices
SHOW ENGINES;
SELECT CURRENT_USER();
SELECT @@version;
SHOW DATABASES;
Assistant
The correct answer is: SELECT @@version
Here's a breakdown of the options:
-
SELECT @@version
- This is the correct command to retrieve the current version of MySQL
- Returns the full version number of the MySQL server
- Example output might look like: "8.0.26-0ubuntu0.20.04.2"
-
SHOW ENGINES;
- This command lists the storage engines available in the MySQL server
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.