Which syntax is correct for RENAME DATABASE in MySQL?

6. Which syntax is correct for RENAME DATABASE in MySQL?

  1. RENAME old_database_name TO new_database_name;
  2. RENAME DATABASE old_database_name TO new_database_name;
  3. ALTER old_database_name MODIFY NAME = new_database_name;
  4. ALTER DATABASE old_database_name MODIFY NAME = new_database_name;

Answer: B) RENAME DATABASE old_database_name TO new_database_name;

Explanation:

RENAME DATABASE old_database_name TO new_database_name; syntax is used to Rename Database in MySQL.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.