【sql in excel】入门11:inWord文档格式.docx

上传人:b****9 文档编号:12979508 上传时间:2022-10-01 格式:DOCX 页数:3 大小:118.85KB
下载 相关 举报
【sql in excel】入门11:inWord文档格式.docx_第1页
第1页 / 共3页
【sql in excel】入门11:inWord文档格式.docx_第2页
第2页 / 共3页
【sql in excel】入门11:inWord文档格式.docx_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

【sql in excel】入门11:inWord文档格式.docx

《【sql in excel】入门11:inWord文档格式.docx》由会员分享,可在线阅读,更多相关《【sql in excel】入门11:inWord文档格式.docx(3页珍藏版)》请在冰豆网上搜索。

【sql in excel】入门11:inWord文档格式.docx

工资

日期

小乔

1

2017/1/1

大乔

2

2017/1/2

李白

3

2017/1/3

百里

4

2017/1/4

程咬金

5

2017/1/5

曹操

6

2017/1/6

刘备

7

2017/1/7

张飞

8

2017/1/8

栗子1:

获取工资为3,6,9的数据。

sql语句:

select*from[Sheet1$]where工资in(3,6,9)

结果:

由于没有工资为9的数据,所以只显示3,6的数据。

栗子2:

获取李白和程咬金的数据。

select*from[Sheet1$]where姓名in('

李白'

'

程咬金'

如果需要提取不是'

的数据,可以用not 

select*from[Sheet1$]where姓名not 

in('

实际上,in也可以用or来代替。

select*from[Sheet1$]where姓名='

or姓名='

用in操作符可以得到与or一样的结果,但是in的速度更快。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > IT计算机 > 电脑基础知识

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1