Vidyalelo
MySQL · all questions

MySQL
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

1,185

Questions

26/60

Page

Pick an option on a question to see the right answer and solution.

Will the following SQL command produce any error?
INSERT INTO person
(person_id, fname,lname)
VALUES (1,’S’,’U’),
VALUES (1,’T’,’U’);
/* where person_id is a primary key */

Select an option to see the answer and solution.

If an error occurs during the transaction the troubleshoot is . . . . . . . .

Select an option to see the answer and solution.

Which command is used for the table definition in Mysql?

Select an option to see the answer and solution.

The CGI.pm module for website development is a part of . . . . . . . .

Select an option to see the answer and solution.

MySQL does provides a date type that has an optional time part.

Select an option to see the answer and solution.

When relocating an individual table, the table to be relocated should be . . . . . . . .

Select an option to see the answer and solution.

What is generally done after the transactions are executed successfully?

Select an option to see the answer and solution.

Which statement is used to select columns and rows from the table?

Select an option to see the answer and solution.

Regardless of whether a database or table name is case sensitive on the system, it must be referred to using the same lettercase throughout a given query.

Select an option to see the answer and solution.

What is the most important configurable resource for MyISAM?

Select an option to see the answer and solution.

Which of the following use 'NULL' to indicate failure?
mysql_init(), mysql_real_connect()

Select an option to see the answer and solution.

Consider a database name "db_name" whose attributes are intern_id (primary key), subject, subject_value.
Intern_id = {1, 2, 3, 4, 5, 6}
Subject = {sql, oop, sql, oop, c, c++}
Subject_value = {0, 0, 1, 1, 2, 2, 3, 3}
If these are one to one relation then what will be the output of the following MySQL statement?
SELECT intern_id
FROM db_name
WHERE subject IN (SELECT subject FROM db_name WHERE subject_value IN (3, 2));

Select an option to see the answer and solution.

The datatype INT stores . . . . . . . .

Select an option to see the answer and solution.

When linking to a static MySQL C client library, the client library and the client application must use the same compiler option.

Select an option to see the answer and solution.

Which of the following returns an SQLSTATE code?

Select an option to see the answer and solution.

What is the command to see the warning messages?

Select an option to see the answer and solution.

Which keyword used with UNION retains duplicate rows?

Select an option to see the answer and solution.

The ALL subquery performs which operation?

Select an option to see the answer and solution.

UPDATE statement is a DML statement. What does DML stand for?

Select an option to see the answer and solution.

What is the default size of 'max_binlog_cache_size' system variable?

Select an option to see the answer and solution.