You are on page 1of 2

mysql> use TMGT;

Database changed
mysql> SELECT * FROM Manufacturer WHERE mcode = 'HAY';
+-------+---------+-----------+
| mcode | mname | lead_time |
+-------+---------+-----------+
| HAY | Haycarb | 4 |
+-------+---------+-----------+
1 row in set (36.77 sec)
mysql> SELECT * FROM Manufacturer LOCK IN SHARE MODE;
+-------+-----------+-----------+
| mcode | mname | lead_time |
+-------+-----------+-----------+
| ACL | ACL Cable | 5 |
| HYL | Hayleys | 5 |
| HAY | Haycarb | 4 |
+-------+-----------+-----------+
3 rows in set (0.00 sec)
mysql> SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT * FROM Manufacturer;
+-------+-----------+-----------+
| mcode | mname | lead_time |
+-------+-----------+-----------+
| ACL | ACL Cable | 5 |
| HYL | Hayleys | 5 |
| HAY | Haycarb | 4 |
+-------+-----------+-----------+
3 rows in set (0.00 sec)
mysql> SET ISOLATION TO COMMITTED READ;
ERROR 1193 (HY000): Unknown system variable 'ISOLATION'
mysql> SET LOCK MODE TO WAIT;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'LOCK
MODE TO WAIT' at line 1
mysql> SELECT * FROM Manufacturer;
+-------+-----------+-----------+
| mcode | mname | lead_time |
+-------+-----------+-----------+
| ACL | ACL Cable | 5 |
| HYL | Hayleys | 5 |
| HAY | Haycarb | 4 |
+-------+-----------+-----------+
3 rows in set (0.00 sec)
mysql>
mysql> OR€(SQL Server, Postgress, MySQL)
-> SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'OR€(SQL
Server, Postgress, MySQL)
SET TRANSACTION ISOLATION LEVEL READ COMMITTE' at line 1
mysql> SELECT * FROM Manufacturer WITH (HOLDLOCK);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'WITH
(HOLDLOCK)' at line 1
mysql>
mysql> OR€SET LOCK_TIMEOUT -1;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'OR€SET L
OCK_TIMEOUT -1' at line 1
mysql>
mysql> (MySQL)
-> SELECT * FROM Manufacturer LOCK IN SHARE MODE;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'MySQL
)
SELECT * FROM Manufacturer LOCK IN SHARE MODE' at line 1
mysql> SET ISOLATION TO COMMITTED READ;
ERROR 1193 (HY000): Unknown system variable 'ISOLATION'
mysql> SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT * FROM Manufacturer WITH (HOLDLOCK);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'WITH
(HOLDLOCK)' at line 1
mysql> SELECT * FROM Manufacturer;
+-------+-----------+-----------+
| mcode | mname | lead_time |
+-------+-----------+-----------+
| ACL | ACL Cable | 5 |
| HYL | Hayleys | 5 |
| HAY | Haycarb | 4 |
+-------+-----------+-----------+
3 rows in set (0.00 sec)
mysql> SELECT * FROM Manufacturer LOCK IN SHARE MODE;
+-------+-----------+-----------+
| mcode | mname | lead_time |
+-------+-----------+-----------+
| ACL | ACL Cable | 5 |
| HYL | Hayleys | 5 |
| HAY | Haycarb | 4 |
+-------+-----------+-----------+
3 rows in set (0.00 sec)
mysql> SELECT @@table_lock_wait_timeout;
+---------------------------+
| @@table_lock_wait_timeout |
+---------------------------+
| 50 |
+---------------------------+
1 row in set (0.00 sec)
mysql> SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
Query OK, 0 rows affected (0.00 sec)
mysql> notee;

You might also like