1
2
3
4
5
6
7
8
9
10
|
drop table if exists t1,t2;
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;
|