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

41/60

Page

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

Which statement can be used to specify the sql_mode system variable at runtime?

Select an option to see the answer and solution.

What does 'abc' || 'xyz' result in if the PIPES_AS_CONCAT is disabled?

Select an option to see the answer and solution.

The clause that enables mapping a short command to a long command is . . . . . . . .

Select an option to see the answer and solution.

To create a database only if it doesn't already exist, which clause is used?

Select an option to see the answer and solution.

What does mysql_fetch_row() return?

Select an option to see the answer and solution.

What does a fully qualified table name consist of?

Select an option to see the answer and solution.

A DEFAULT value cannot be supplied to spatial types.

Select an option to see the answer and solution.

'x' in the following MySQL statement is . . . . . . . .
DELETE FROM x USING x LEFT JOIN y ON x.col = y.col;

Select an option to see the answer and solution.

How many of the following can be used in stored procedures?
PREPARE, EXECUTE, DEALLOCATE PREPARE

Select an option to see the answer and solution.

The default value in seconds in the system variable 'long_query_time' is . . . . . . . .

Select an option to see the answer and solution.

Identify the table name in the following SQL statement.
INSERT INTO student VALUES('Kyle','M',NULL);

Select an option to see the answer and solution.

The special database that always exists after setting up MySQL in a computer is . . . . . . . .

Select an option to see the answer and solution.

Which of the following statements is/are correct?

Select an option to see the answer and solution.

Which clause is used to sort query elements?

Select an option to see the answer and solution.

The maximum number of indexes on MyISAM table is . . . . . . . .

Select an option to see the answer and solution.

For the same input parameters, if the stored function returns the same result, it is called . . . . . . . .

Select an option to see the answer and solution.

Find the error in the following SQL statement?
CREATE TABLE person
( person_id SMALLINT, name VARCHAR, LAST VARCHAR, Bith_date DATE
CONSTRAINTS pk_person PRIMARY KEY (person_id));
INSERT INTO person
VALUES( person_id, name, LAST, Birth_date)
(1,’s’,’p’, 24-1991-01);

Select an option to see the answer and solution.

Which of the following statements does not modify the table?

Select an option to see the answer and solution.

To see the table structure, which of the following SQL commands is issued?

Select an option to see the answer and solution.

Suppose you want to select a database named 'sampledb' as the default database. Which of the following commands do you use?

Select an option to see the answer and solution.