Which syntax is correct for RENAME DATABASE in SQL?

7. Which syntax is correct for RENAME DATABASE in SQL?

  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: D) ALTER DATABASE old_database_name MODIFY NAME = new_database_name;

Explanation:

ALTER DATABASE old_database_name MODIFY NAME = new_database_name; syntax is used to Rename Database in SQL.

Comments and Discussions!

Load comments ↻






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