sql学习笔记一 语法
2016-05-25 19:39
274 查看
select选出表格
select store-name from stroe-informationdistinct读取不同资料
select distinct store-name from stroe-informationwhere选择性抓取资料
select store-name from store-information where sales》1000and or组合简单条件
select stroe-name from store-information where sales》1000 or(sales《500 and sales》275)in在不连续的值内抓已知数据
select* from stroe-information where store-name in(‘los’,‘san’)between在一个范围内抓已知数据
select* from store-informaion where date between ‘jan’ and ‘mar‘like依据模式找资料
select* from store-information where store-name like ’%AN%‘order by 排列资料
select store-name,sales,date from store-information order by sales DESC相关文章推荐
- SQL中的三值逻辑
- SQL Server 作业批量停止
- 结束SQL阻塞的进程
- 动态生成SQL Server视图作业
- SQL Server 语句操纵数据库
- SQL(结构化查询语句)
- oracle sql日期比较
- linux快速部署mysql服务器
- sql 存储过程分页
- 在WINXP系统上安装SQL Server企业版的方法
- 通过批处理调用SQL的方法(osql)
- SQL Server 存储过程的分页
- ASP程序与SQL存储过程结合使用详解
- SQL SERVER编写存储过程小工具
- 防御SQL注入攻击时需要注意的一个问题
- Microsoft Sql server2005的安装步骤图文详解及常见问题解决方案
- PostgreSQL教程(十九):SQL语言函数
- SQL Server复制需要有实际的服务器名称才能连接到服务器