mirror of
https://github.com/MariaDB/server.git
synced 2025-04-24 18:27:21 +03:00
12 lines
292 B
Plaintext
12 lines
292 B
Plaintext
drop table if exists t1,t2;
|
|
set @@sort_buffer_size=32804;
|
|
CREATE TABLE `t1` (
|
|
`id` int(11) NOT NULL default '0',
|
|
`id2` int(11) NOT NULL default '0',
|
|
`id3` int(11) NOT NULL default '0');
|
|
create table t2 select id2 from t1 order by id3;
|
|
select count(*) from t2;
|
|
count(*)
|
|
4000
|
|
drop table t1,t2;
|