查询语句
来源:互联网 发布:java计算器单选按钮 编辑:程序博客网 时间:2024/05/21 15:34
select * from 商品 where( (商品类别=1) or (商品类别=2) or (商品类别=3) or (商品类别=6))
商品类别指的是粮食,五金,电子,蔬菜,水果,等等这样的类别
create table test(idint identity(1,1),colvarchar(100))
insert into test(col)
select top10000'a'from sysobjects across join sysobjects b
--第一种情况select* from testwhere id in (1,2,3,6)
--第二种情况select* from testwhere id=1or id=2or id=3or id=6
--第三种情况select* from testwhere id=1union all
select* from testwhere id=2union all
select* from testwhere id=3union all
select* from testwhere id=6
- 查询语句
- 查询语句
- 查询语句
- 查询语句
- 查询语句
- 查询语句
- 查询语句
- 查询语句
- sql查询语句--连接语句
- 分页查询语句数据库查询
- oracle查询语句、分页查询
- hibernate查询语句--HQL
- MSSQL查询语句精华
- SQL查询语句基础
- 通用SQL查询语句
- 常用的查询语句
- 数据查询--SELECT语句
- SQL查询语句汇总
- Android权限之三共享UID和签名
- 技术平台研发目标 .
- 终结Webshell 加固web服务器
- J2EE笔记——Struts
- AR 收款导入及收款核销程序
- 查询语句
- RPM 安装与卸载命令
- Oracle 服务器端客户端字符集设置对应用程序的影响
- 分布式时间戳
- oracle批量update
- J2EE笔记——Spring
- 魔术拆穿了,其实很简单
- 败者树 K-路归并排序
- android 开发备忘