Mysql Basic


  1. Which server mode value enables use of double quotes to wrap identifier names?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, use of double quotes is enabled when the server SQL mode ‘ANSI_QUOTES’ is set. The use of backticks is still allowed. For example, SELECT TABLE “my table” is a statement that is allowed.


  1. Which of the following is an illegal unquoted identifier name?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    In MySQL, the quoted and unquoted identifier names have differences in the level of restrictions imposed on them. An unquoted identifier name can’t have all digits since it would be impossible to distinguish it from an integer constant.



  1. How are identifiers quoted in MySQL?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    An identifier is quoted within the backtick characters ‘`’. This allows use of any character except a byte with value 0 or 255. Single quotes and double quotes are not allowed when quoting identifier names.


  1. MySQL is freely available and is open source.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    MySQL is free and open source. It’s source code is available for use and is freely downloadable. It includes the MySQL Server, the world’s most popular open source database, and MySQL Cluster, a real-time, open source transactional database.



  1. What represents a ‘tuple’ in a relational database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Each row in a table represents a record. A tuple is a collection of attribute values that makes a record unique. A tuple is a unique entity whereas attribute values can be duplicate in the table.