- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Using Conversion Functions and Conditional Expressions Objectives After completing this lesson, you should be able to do the following: Describe various types of conversion functions that are available in SQL Use the TO_CHAR, TO_NUMBER, and TO_DATE conversion functions Apply conditional expressions in a SELECT statement Lesson Agenda Implicit and explicit data type conversion TO_CHAR, TO_DATE, TO_NUMBER functions Nesting functions General functions: NVL NVL2 NULLIF COALESCE Conditional expressions: CASE DECODE Conversion Functions Implicit Data Type Conversion In expressions, the Oracle server can automatically convert the following: Implicit Data Type Conversion For expression evaluation, the Oracle server can automatically convert the following: Explicit Data Type Conversion Explicit Data Type Conversion Explicit Data Type Conversion Lesson Agenda Implicit and explicit data type conversion TO_CHAR, TO_DATE, TO_NUMBER functions Nesting functions General functions: NVL NVL2 NULLIF COALESCE Conditional expressions: CASE DECODE Using the TO_CHAR Function with Dates The format model: Must be enclosed with single quotation marks Is case-sensitive Can include any valid date format element Has an fm element to remove padded blanks or suppress leading zeros Is separated from the date value by a comma Elements of the Date Format Model Elements of the Date Format Model Time elements format the time portion of the date: Add character strings by enclosing them with double quotation marks: Number suffixes spell out numbers: Using the TO_CHAR Function with Dates Using the TO_CHAR Function with Numbers These are some of the format elements that you can use with the TO_CHAR function to display a number value as a character: Using the TO_CHAR Function with Numbers Using the TO_NUMBER and TO_DATE Functions Convert a character string to a number format using the TO_NUMBER function: Convert a character string to a date format using the TO_DATE function: These functions ha
您可能关注的文档
- 第二阶段英语阅读材料1-15提高篇英语阅读精读10.pdf
- 白酒行业安徽白酒市场深度报告放大格局看古井、口子及徽酒发展-20170219-招商.pdf
- 延长壳牌四川零售业务工作许可证系统4 1版20140201.pdf
- 2019美赛特等奖全部1916129.pdf
- 财务小白上岗实训一、财务基础知识.pdf
- 设计版本1-可行性研究报告.pdf
- 210226徐汝康学习长安汽车mlqos-l5评估标准.pdf
- 20141111-上海-文化娱乐行业2015年政策利好行业发展娱乐消费走向多元化.pdf
- 00课前学习材料及课程表11数量-代入排除法.pdf
- 美满停办2010年7月业务推动方案.ppt
- 产品介绍3、inspur浪潮-vtm产品线培训.pptx
- 06 yjk讲座材料-公开版201510 28 yjk装配式建筑设计.pptx
- thinkphp6 x讲义代码sql讲义48门面facade.pdf
- a-本期视频21-python进阶腾讯3132期2020-1-13 socket编程笔记.pdf
- tec百家讲坛学员交流陶建军.ppt
- mk_2017年教师资格考试教育教学知识与能力模拟试卷小学.pdf
- 20180731动态规划dp基础dp学习动态规划算法1.pptx
- 1赵斌-行业传播趋势分析-市场与媒体研究中心0917.pptx
- 西安市纺织产业园品牌传播策略方案-迁徙.ppt
- 1、笔记4、kubernetes集群安全-准入控制.pdf
文档评论(0)