11138
2017-07-10 00:39:52 +08:00
mysql> use employees;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> set autocommit=0;
Query OK, 0 rows affected (0.00 sec)
mysql> begin;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT * from employees where emp_no=10002;
+----+--------+
| id | emp_no |
+----+--------+
| 1 | 10002 |
+----+--------+
1 row in set (0.00 sec)
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> use employees;set autocommit=0;begin;SELECT * from employees where emp_no=10002;commit;
Database changed
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
+----+--------+
| id | emp_no |
+----+--------+
| 1 | 10002 |
+----+--------+
1 row in set (0.00 sec)
Query OK, 0 rows affected (0.00 sec)