Part 5 Select statement in sql server
2015-10-10 11:55
260 查看
Select specific or all columns select * from 表名 select * from Student select 列名,列名... from 表名 select name,age,email from Student Distinct rows select distinct 列名 from 表名 select distinct name from Student Filtering with where clause(子句) select * from Student where age>18 Wild Cards in SQL Server Joining multiple conditions using AND and OR operators select * from Student where age>18 and name like 'gester%' or gender=1 Sorting rows using order by select name,email from Student order by name Selecting top n or top n percentage of rows select top 10 * from Student
相关文章推荐
- Part 6 Group by in sql server
- Part 8 Coalesce function in sql server
- Part 9 Union and union all in sql server
- mysql免安装方法
- 浅谈Oracle 11g 发行版2 新安装后关于登录的一些基本操作
- zabbix进行数据库备份以及表分区的方法
- 在Windows上部署使用Redis
- MongoDB(三)
- Redis --- Sentinel
- 数据库基础问答Q&A
- 3分钟wamp安装redis扩展超级简单
- Oracle误删表空间文件后数据库无法启动解决
- 阿里云安装PostgreSQL无法创建数据库实例
- MySQL删除重复记录只保留一条
- SQL注入——原理讲解
- MySQL自建函数之得到两个日期间连续的日期
- .Net识别不了MySql.DateTime类型解决
- java操作memcached 例子
- Nginx+Tomcat+Memcached部署
- memcached在windows7安装