- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
ORACLE过滤和排序数据
过滤和排序数据 目标 通过本章学习,您将可以: 在查询中过滤行。 在查询中对行进行排序。 在查询中过滤行 过滤 使用WHERE 子句,将不满足条件的行过滤掉。 WHERE 子句紧随 FROM 子句。 WHERE 子句 字符和日期 字符和日期要包含在单引号中。 字符大小写敏感,日期格式敏感。 默认的日期格式是 DD-MON-RR。 比较运算 比较运算 其它比较运算 BETWEEN 使用 BETWEEN 运算来显示在一个区间内的值。 IN 使用 IN运算显示列表中的值。 LIKE 使用 LIKE 运算选择类似的值 选择条件可以包含字符或数字: % 代表一个或多个字符。 _ 代表一个字符。 LIKE ‘%’和‘-’可以同时使用。 可以使用 ESCAPE 标识符 选择‘%’和 ‘_’ 符号。 NULL 使用 NULL 判断空值。 逻辑运算 AND OR NOT 优先级 优先级 优先级 ORDER BY 字句 使用 ORDER BY 子句排序 ASC: 升序(默认方式) DESC: 降序 ORDER BY 子句在SELECT语句的结尾。 降序排序 按别名排序 多个列排序 按照ORDER BY 列表的顺序排序。 可以使用不在SELECT 列表中的列排序。 总结 Character Strings and Dates Character strings and dates in the WHERE clause must be enclosed in single quotation marks (). Number constants, however, should not be enclosed in single quotation marks. All character searches are case sensitive. In the following example, no rows are returned because the EMPLOYEES table stores all the last names in mixed case: SELECT last_name, job_id, department_id FROM employees WHERE last_name = WHALEN; Oracle databases store dates in an internal numeric format, representing the century, year, month, day, hours, minutes, and seconds. The default date display is DD-MON-RR. Note: Changing the default date format is covered in a subsequent lesson. Instructor Note Some students may ask how to override the case sensitivity. Later in the course, we cover the use of single-row functions such as UPPER and LOWER to override the case sensitivity. Comparison Conditions Comparison conditions are used in conditions that compare one expression to another value or expression. They are used in the WHERE clause in the following format: Syntax ... WHERE expr operator value For Example ... WHERE hire_date=01-JAN-95 ... WHERE salary=6000 ... WHERE last_name=Smith An alias cannot be used in the WHERE clause. Note: The symbol != and ^= can also represent the not equal to condition. Using the Comparison Conditions In the example, the SELECT statement retrieves the last name and salary
您可能关注的文档
- CI—MID质谱技术在分析痕量有毒化合物方面的应用.pdf
- Cl^-、NH4^+对化学需氧量测定的影响及消除的研究.pdf
- Control Logix控制系统在高炉喷煤的应用.pdf
- CO/CO2气氛对Fe3C形成的影响规律.pdf
- COREX喷煤燃烧利用的研究.pdf
- Cu污染土壤—水稻系统中Cu的分布特征.pdf
- C(M)630型煤气鼓风机轴端气封改造.pdf
- EDTA对汞毒害下玉米幼苗细胞膜损伤及体内保护系统变化的缓解作用.pdf
- Determination of Trace Copper (Ⅱ) in Water Samples by Kinetic-spectrophotometry.pdf
- EMD—SVM非线性组合模型对高炉铁水含硅量的预测.pdf
有哪些信誉好的足球投注网站
文档评论(0)