| test100 | CREATE TABLE `test100` (
`sn` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增编号',
`phoneNo` int(11) DEFAULT NULL,
`channelType` int(11) DEFAULT NULL COMMENT '通道识别',
`status` tinyint(4) NOT NULL COMMENT '短信转态,1.发送成功,2.发送失败,3.发送异常',
PRIMARY KEY (`sn`),
KEY `test100_idx1` (`phoneNo`)
) ENGINE=InnoDB AUTO_INCREMENT=5028 DEFAULT CHARSET=utf8 COMMENT='短信发送成功记录表' |
+---------
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------+
1 row in set (0.02 sec)
mysql> select * from test100 limit 20;
+----+---------+-------------+--------+
| sn | phoneNo | channelType | status |
+----+---------+-------------+--------+
| 1 | 1 | 2 | 1 |
| 2 | 2 | 2 | 1 |
| 3 | 3 | 2 | 1 |
| 4 | 4 | 2 | 1 |
| 5 | 5 | 2 | 1 |
| 6 | 6 | 2 | 1 |
| 7 | 7 | 2 | 1 |
| 8 | 8 | 2 | 1 |
| 9 | 9 | 2 | 1 |
| 10 | 10 | 2 | 1 |
| 11 | 11 | 2 | 1 |
| 16 | 16 | 2 | 1 |
| 17 | 17 | 2 | 1 |
| 18 | 18 | 2 | 1 |
| 19 | 19 | 2 | 1 |
| 20 | 20 | 2 | 1 |
| 21 | 21 | 2 | 1 |
| 22 | 22 | 2 | 1 |
| 23 | 23 | 2 | 1 |
| 24 | 24 | 2 | 1 |
+----+---------+-------------+--------+
20 rows in set (0.00 sec)
Session 1:
mysql> select * from test100 limit 20;
+----+---------+-------------+--------+
| sn | phoneNo | channelType | status |
+----+---------+-------------+--------+
| 1 | 1 | 2 | 1 |
| 2 | 2 | 2 | 1 |
| 3 | 3 | 2 | 1 |
| 4 | 4 | 2 | 1 |
| 5 | 5 | 2 | 1 |
| 6 | 6 | 2 | 1 |
| 7 | 7 | 2 | 1 |
| 8 | 8 | 2 | 1 |
| 9 | 9 | 2 | 1 |
| 10 | 10 | 2 | 1 |
| 11 | 11 | 2 | 1 |
| 16 | 16 | 2 | 1 |
| 17 | 17 | 2 | 1 |
| 18 | 18 | 2 | 1 |
| 19 | 19 | 2 | 1 |
| 20 | 20 | 2 | 1 |
| 21 | 21 | 2 | 1 |
| 22 | 22 | 2 | 1 |
| 23 | 23 | 2 | 1 |
| 24 | 24 | 2 | 1 |
+----+---------+-------------+--------+
20 rows in set (0.00 sec)
mysql> SELECT @@tx_isolation;
+-----------------+
| @@tx_isolation |
+-----------------+
| REPEATABLE-READ |
+-----------------+
1 row in set (0.01 sec)
mysql> start transaction;
Query OK, 0 rows affected (0.00 sec)
mysql> insert into test100(phoneNo,channelType,status) values(15,1,1);
Query OK, 1 row affected (0.05 sec)
Session 2:
mysql> use zjzc;
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> insert into test100(phoneNo,channelType,status) values(15,1,1);
Query OK, 1 row affected (0.01 sec)
mysql> insert into test100(phoneNo,channelType,status) values(14,1,1);
Query OK, 1 row affected (0.01 sec)
mysql> insert into test100(phoneNo,channelType,status) values(16,1,1);
Query OK, 1 row affected (0.00 sec)
RR 插入不影响
转载上一篇:jqGrid动态获取列和列字段
下一篇:Error gsettings key preview-size-scale not found in schema org.gnome.shell.extensions.dash-to-dock
举报文章
请选择举报类型
内容侵权
涉嫌营销
内容抄袭
违法信息
其他
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M
相关文章
-
超炫酷!用Excel三维地图,让销售数据动起来
你还在用静止的柱形图吗?
数据 字段 动态显示 -
最简单的try catch
在进行 插入更新的时候,时常需要try catch ,下面是一个简单的例子
html 公众号 javascript -
如果抽出一块正常工作的服务器硬盘,会发生什么?
最近小编老是会被问:如果抽出一块正常工作的服务器硬盘,结果会怎样?• 数据会不会丢?• 业务会不会受影响?答案是,不会丢!不受影响!
分布式 网络 java 分布式存储 hadoop -
C语言学习--插入排序法,折半排序法
C语言学习--插入排序法,折半排序法
插入排序法 折半排序法
29539dcd79f9 8 月前
f05dbc2c28eb 8 月前