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

50/60

Page

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

For which type are illegal values converted to the appropriate 'zero' value?

Select an option to see the answer and solution.

The command to move the cursor to the beginning of line in MySQL input editor is?

Select an option to see the answer and solution.

What will be the output of the following MySQL statement?
SELECT *
FROM employee
WHERE lname LIKE ‘F%’ AND lname LIKE ‘%T’;

Select an option to see the answer and solution.

mysql_init() returns a . . . . . . . .

Select an option to see the answer and solution.

The columns containing a binary value that include null bytes will print properly using the %s printf() format specifier.

Select an option to see the answer and solution.

Which of the following is case sensitive?

Select an option to see the answer and solution.

What is the host name in the following MySQL command?
mysql -h cobra.snake.net -p -u sampadam

Select an option to see the answer and solution.

To convert a string to an int, the function is . . . . . . . .

Select an option to see the answer and solution.

Does the following MySQL statement belong to the "Inequality condition"?
SELECT product_type.name, product.name
FROM product_type INNER JOIN Product
ON product_type.dept=Product.dept
WHERE product_type.name<>’customers_accounts’;

Select an option to see the answer and solution.

The line that is written at the top of the script to write a Perl script using CGI.pm is . . . . . . . .

Select an option to see the answer and solution.

Which keyword in the UPDATE statement is used to assign values to columns?

Select an option to see the answer and solution.

Which of these has a smaller memory footprint?
Perl, PHP

Select an option to see the answer and solution.

Which keyword is used to create a database?

Select an option to see the answer and solution.

Before relocation of database, the server should be stopped if running.

Select an option to see the answer and solution.

What is abc in the following SQL statement?
DELETE FROM xyz WHERE abc = 5;

Select an option to see the answer and solution.

Which mode tells the server to recognize double quote as an identifier quoting character?

Select an option to see the answer and solution.

What is abc in the following MySQL statement?
CREATE TRIGGER abc (...) (...) ON def FOR EACH ROW ghi;

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 can use different compiler options.

Select an option to see the answer and solution.

To perform a delete on a single-table, how is the name of a column qualified?

Select an option to see the answer and solution.

For which of the following are triggers not supported?

Select an option to see the answer and solution.