摘要:
来自:http://www.cnblogs.com/AaronYang/archive/2012/04/24/2468093.htmlSqlServer基础语法--查看数据表select*fromStudent--使用Sql查询数据--1、查询表中所有类容Select*FromTableName--2、查询表中指定字段类容SelectColumnName,…,FromTableNameSelectstuName,stuNo,stuSexFromstuInfo--3、带Where条件的查询Select*|ColumnNameFromTableNameWhereconditionselect*Fr 阅读全文
摘要:
出处:http://www.cnblogs.com/hoojo/archive/2011/07/16/2108129.html高级查询在数据库中用得是最频繁的,也是应用最广泛的。Ø 基本常用查询--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 阅读全文