2011年7月18日

SQL Server T-SQL高级查询

摘要: SQL Server T-SQL高级查询(转)高级查询在数据库中用得是最频繁的,也是应用最广泛的。Ø 基本常用查询--selectselect * from student;--all 查询所有select all sex from student;--distinct 过滤重复select distinct sex from student;--count 统计select count(*) from student;select count(sex) from student;select count(distinct sex) from student;--top 取前N条记录 阅读全文

posted @ 2011-07-18 19:40 原来... 阅读(532) 评论(1) 推荐(1) 编辑

导航