mysql> select dept_unit,count(encourage_kind_1) from rec group by dept_unit;
+-----------+-------------------------+
| dept_unit | count(encourage_kind_1) |
+-----------+-------------------------+
| AA10000 | 3 |
+-----------+-------------------------+
1 row in set (0.06 sec)mysql> select dept_unit,count(encourage_kind_1) from rec group by dept_unit;
+-----------+-------------------------+
| dept_unit | count(encourage_kind_1) |
+-----------+-------------------------+
| AA10000 | 3 |
+-----------+-------------------------+
1 row in set (0.08 sec)mysql> select dept_unit,count(encourage_kind_1) from rec group by dept_unit;
ERROR 1062 (23000): Duplicate entry 'AA10000' for key 1上面是我执行相同的SQL语句三次不同的结果,请问为什么??
+-----------+-------------------------+
| dept_unit | count(encourage_kind_1) |
+-----------+-------------------------+
| AA10000 | 3 |
+-----------+-------------------------+
1 row in set (0.06 sec)mysql> select dept_unit,count(encourage_kind_1) from rec group by dept_unit;
+-----------+-------------------------+
| dept_unit | count(encourage_kind_1) |
+-----------+-------------------------+
| AA10000 | 3 |
+-----------+-------------------------+
1 row in set (0.08 sec)mysql> select dept_unit,count(encourage_kind_1) from rec group by dept_unit;
ERROR 1062 (23000): Duplicate entry 'AA10000' for key 1上面是我执行相同的SQL语句三次不同的结果,请问为什么??
解决方案 »
- 很特别的安装ODBC的问题
- mysql任何锁表情况都很慢,锁多个表还出现过提示timeout的情况,偶尔发生,发生时重启数据库也不能解决问题
- 这条语句什么意思,执行的先后顺序可以给我讲一下吗?
- 把表修改为 utf-8如何写sql
- 执行 mysql_real_query 后,如何知道能返回几条记录?
- windows下如何运行mysql
- You have an error in your SQL syntax; check the manual that corresponds to y
- 我想写一个PHP检测MYSQL数据库的文件?求助!
- mysql如何比较time类型?
- my sql order by 某些字段会影响 left join ?
- mysql可不可以设计出像access那样的查询表?
- 如何把查询结果传入到自定义函数中?
2、是连续执行还是中间进行过其它操作;
3、检查一下KEY 1中是否有重复的记录。
主键是单一的?
property of the column.你将dept_unit设为NOT NULL试试
如果每次都能重现的话,mysql的测试人员怎么测不出来
这个bug也不可能所有版本都有啊
所以还是lz提供下版本