编程论坛
注册
登录
编程论坛
→
SQL Server论坛
求助前辈们啊 我刚开始接触sql,求前辈们先帮我解决个问题把 大恩大德感激不尽
spring_smile
发布于 2009-11-06 09:05, 819 次点击
请写一条SQL,选出表EMP的奇数行(也就是select * from emp的奇数行)
2 回复
#2
gameohyes
2009-11-13 00:07
where加个条件不就行了吗?
#3
师妃暄
2009-11-13 09:28
select identity(int,1,1) as num ,* into #temp2 from emp
select * from #temp2 where num%2=1
drop table #temp2
[
本帖最后由 师妃暄 于 2009-11-13 09:35 编辑
]
1