1. Home
  2. Computer Science MCQs
  3. MySQL
  4. How much character are allowed to create database name?

Added 19 Jan 2024

How much character are allowed to create database name?

  1. 55
  2. 72
  3. 64 Correct answer
  4. 125

Correct answer

C. 64

17 views

MCQSEXAM

Explanation

The maximum number of characters allowed for a database name depends on the specific database management system (DBMS) you are using. For MySQL, which is a commonly used relational database management system, the maximum length of a database name is 64 characters.

In MySQL, database names are identifiers and are subject to the following rules:

  1. Must begin with a letter (a-z, A-Z) or an underscore (_).
  2. Subsequent characters can be letters, underscores, digits (0-9), or periods (.).
  3. The maximum length is 64 characters.

It's worth noting that while the maximum length is 64 characters, it's often recommended to keep database names concise and descriptive for ease of use and maintenance.

Other database systems may have different rules and limits for database names, so it's important to consult the documentation of the specific DBMS you are working with for accurate information.

Reference

https://www.w3schools.com/mysql/mysql_rdbms.asp

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs