In MYSQL 5.6 you have the table t1:
CREATE TABLE t1 (
id int unsigned NOT NULL PRIMARY key) ENGINE = InnoDB;
There are two connections to the server. They execute in this order:
Connection 1> SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
Connection 1> START TRANSACTION;
Connection 1> SELECT * FROM t1 WHERE id =1;
Connection 2> TRUNCATE TABLE t1;
What happens to the TRUNCATE TABLE command in connection 2?
Which three connector/J connection strings can be used to connect to the MYSQL server?
You have two test tables:
The tables have the same structure:
The tables have one row of data:
You execute an INSERT statement on both code_myisam tables and receive duplicate key errors:
mysql> INSERT INTO code_innodb VALUES (1, ‘Alpha’), (2, ‘Beta’), (3, ‘charlie,),(4, ‘Delta’);
ERROR 1062 (23000): Duplicate entry ‘3’ for key ‘PRIMARY’
Mysql> INSERT INTO code_myisam VALUES (1, ‘Alpha’), (2, ‘Beta’), (3, ‘charlie’),
(4, ‘Delta’);
ERROR 1062 (23000); Duplicate entry ‘3’ for key ‘PRIMARY’
What is the expected output of the SELECT statements?
Which statement correctly demonstrates using a subquery as a scalar expression?
A SELECT statement without an ORDER BY clause return some rows.
Which statement is always true about the order of the returned results?
The data from t1 table is:
Assuming You want to see this output:
Which query achieves the preceding result?
Consider the content of the class and student tables:
Class
Which three queries produce the same result?