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

23/60

Page

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

An uncorrelated subquery does not contain any reference to the values from the outer query.

Select an option to see the answer and solution.

Which of these return a result to the client?

Select an option to see the answer and solution.

PHP variables are preceded by . . . . . . . .

Select an option to see the answer and solution.

Symlink is an applicable relocation method for . . . . . . . .

Select an option to see the answer and solution.

How many of the following take a connection handler as an argument?
mysql_store_result(), mysql_use_result()

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
  CONSTRAINTS pk_person PRIMARY KEY (person_id));
  INSERT INTO person
  VALUES( person_id, name, LAST)
  (1, ’s’, ’p’);
  INSERT INTO person
  ( person_id, name, LAST)
  VALUES(1,’s’,’p’);

Select an option to see the answer and solution.

The statement used to find out which character sets are available is . . . . . . . .

Select an option to see the answer and solution.

Is there any error in the following MySQL command?
SELECT emp_id, title, start_date, fname, fed_id
FROM person
ORDER BY RIGHT (fed_id, 3);

Select an option to see the answer and solution.

Avoiding NULL in columns may make queries simpler.

Select an option to see the answer and solution.

Which clause is used to "Identifies table from which to draw table and how the table should be joined"?

Select an option to see the answer and solution.

What is 'tamp' in the following MySQL command?
mysql -h xyz.host.try.net -p -u tamp

Select an option to see the answer and solution.

What does 'abc' & 'xyz' specify in the following SQL statement?
CREATE TABLE abc (xyz);

Select an option to see the answer and solution.

Which server mode value disables use of built in function names as identifiers?

Select an option to see the answer and solution.

If a string is to be converted to a number, it is converted into a . . . . . . . .

Select an option to see the answer and solution.

To determine whether query cache is supported by the server the variable is . . . . . . . .

Select an option to see the answer and solution.

The number of options that can be used to control LOCAL capability at runtime is . . . . . . . .

Select an option to see the answer and solution.

The UNION ALL has a higher precedence than UNION DISTINCT.

Select an option to see the answer and solution.

The number of attributes in the following SQL table is . . . . . . . .
CREATE TABLE employee (
		emp_name CHAR(30),
		emp_id INT
	);

Select an option to see the answer and solution.

The facility that allows nesting one select statement into another is called . . . . . . . .

Select an option to see the answer and solution.

CGI.pm also supports an object oriented style of use.

Select an option to see the answer and solution.