sql 相关的面试题收集及答案
一 //查询某表中的第30到40行的数据
select * from 表名 where 字段 in( select top 40 字段 from 表名 )and 字段 not in( select top 30 字段 from 表名)
或者
select top 10 * from 表名 where 字段 not in( select top 30 字段 from 表名)
二 //查询一个表中存在重复的字段“字段1”
select DISTINCT 字段1 from 表名 having count(字段1)>1 group by 字段1
(并显示可能重复的次数)
select DISTINCT 字段1, count(字段1) As 次数 from 表名 having count(字段1)>1 group by 字段1
发布人信息
- 联系人:wumingwei 查看该用户发布的所有信息
- 电话:
- 邮箱:
- 地址:



