tidb
tidb copied to clipboard
Diff result with mysql for statement with `union` and `union all`
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provide a recipe for reproducing the error.
create table t(a int, b int, c int);
insert into t values (1,2,3);
select * from t union select * from t union all select * from t;
- What did you expect to see?
+------+------+------+
| a | b | c |
+------+------+------+
| 1 | 2 | 3 |
| 1 | 2 | 3 |
+------+------+------+
- What did you see instead?
+------+------+------+
| a | b | c |
+------+------+------+
| 1 | 2 | 3 |
+------+------+------+
- What version of TiDB are you using (
tidb-server -Vor runselect tidb_version();on TiDB)?
master