查询的几个操作

select distinct sex from stuInfo//查询不重复的
select top 3 *  from stuInfo//查询表的前三行
select top 30 percent * from stuInfo//查询表的前边的百分之三十行

select top 2 *  from stuInfo order by NEWID()

posted @ 2013-07-23 01:16  秋日的私语(且行且珍惜)  阅读(116)  评论(0编辑  收藏  举报