Your MYSQL server was successfully running for a days, and then suddenly stopped .You are sure that no mysqld process is running.
Which two may provide diagnostic information to help determine why the MYSQL server stopped?
You are connected to a MySQL server and using a prepared statement. You accidentally exit your session.
What will happen if you log back in to use your prepared statement?
Which two code samples demonstrate valid methods for working with loops?
Which three statement types can be prepared?
Consider the stored procedure
CREATE PROCEDURE param_test (
IN P_in INT,
OUT P_out INT,
INPUT P_inout INT)
BEGIN
SELECT P_in, P_out, P_ inout;
SET P_in, P_inout
END
You execute a series of commands:
What is the output of the CALL and SELECT?
You started a MySQL command –line session with sq1_ mode (empty), and created the person table with the structure:
Mysql> DESC person;
You issue:
INSERT INTO person VALUES (‘casper’, ‘undefined’)
What is the effect?
The people table contains the data as shown:
Which two statements return two rows each?
As a developer, you inherit this table as part of a project:
CREATE TABLE exam (
Exam_id INTEGER UNSIGNED NOT NULL PRIMARY KEY,
Examinee_id INTEGER UNSIGNED UNIQUE,
Score INTEGER UNSIGNED
)
What change should you make to ensure that examinee_id is an integer value throughout the table?
Which three view types are not updateable?
A MySQL command- line client is started with safe updates disabled.
Mysql - -safe – updates=0
What happens when you execute an UPDATE statement without a WHERE clause?
You attempt to create a temporary table by using the following statement:
CREATE TEMPORARY TABLE employeesMAIN
SELECT * FROM employees1
UNION ALL
SELECT * FROM employees2;
What is the result?
Examine the fruit and wine tables:
Fruit
You execute this query:
SELECT fruited, fruitname FROM fruit
UNION
SELECT id, name, country FROM wine;
What is the result?
Consider a table my_table , with contents shown:
You execute:
SELECT a b, b a
FROM my_table
WHERE a < s
ORDER BY b;
What does this statement return?
Which three statements describe valid reasons why queries that use “SELECT” construct are discouraged?