| 发表于:2007-07-08 14:39:553楼 得分:0 |
create table test(scoid int,stid int,score int) insert test select 1,1,40 union all select 2,1,50 union all select 3,1,60 union all select 4,2,40 union all select 5,2,51 union all select 6,2,60 union all select 7,3,40 union all select 8,3,52 union all select 9,3,60 go select * from test where score <60 go drop table test /---------------------结果 1 1 40 2 1 50 4 2 40 5 2 51 7 3 40 8 3 52 | | |
|