当前位置:首页 > 全部子站 > IT > Oracle

Oracletochar的用法的描述

来源:长理培训发布时间:2017-10-17 20:15:43

  以下的文章主要是对Oracle to_char 的用法的描述,相对而言Oracle to_char能在很短的时间里被广泛的应用,说明它的可实际应用性还是占优势的,以下就是文章的具体内容的介绍,希望你会有所收获。
The following are number examples for the to_char function.

  2.to_char(1210.73, '9999.9') would return '1210.7'

  3.to_char(1210.73, '9,999.99') would return '1,210.73'

  4.to_char(1210.73, '$9,999.00') would return '$1,210.73'

  5.to_char(21, '000099') would return '000021'

  6.The following is a list of valid parameters when

  the to_char function is used to convert a date to a string.

  These parameters can be used in many combinations.

  7.Parameter Explanation

  8.YEAR Year, spelled out

  9.YYYY 4-digit year

  10.YYY

  11.YY

  12.Y Last 3, 2, or 1 digit(s) of year.

  13.IYY

  14.IY

  15.I Last 3, 2, or 1 digit(s) of ISO year.

  16.IYYY 4-digit year based on the ISO standard

  17.Q Quarter of year (1, 2, 3, 4; JAN-MAR = 1).

  18.MM Month (01-12; JAN = 01).

  19.MON Abbreviated name of month.

  20.MONTH Name of month, padded with blanks to length of 9 characters.

  21.RM Roman numeral month (I-XII; JAN = I).

  22.WW Week of year (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year.

  23.W Week of month (1-5) where week 1 starts on the first day of the month and ends on the seventh.

  24.IW Week of year (1-52 or 1-53) based on the ISO standard.

  25.D Day of week (1-7).

  26.DAY Name of day.

  27.DD Day of month (1-31).

  28.DDD Day of year (1-366).

  29.DY Abbreviated name of day.

  30.J Julian day; the number of days since January 1, 4712 BC.

责编:罗莉

发表评论(共0条评论)
请自觉遵守互联网相关政策法规,评论内容只代表网友观点,发表审核后显示!

国家电网校园招聘考试直播课程通关班

  • 讲师:刘萍萍 / 谢楠
  • 课时:160h
  • 价格 4580

特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关

配套通关班送国网在线题库一套

课程专业名称
讲师
课时
查看课程

国家电网招聘考试录播视频课程

  • 讲师:崔莹莹 / 刘萍萍
  • 课时:180h
  • 价格 3580

特色解密新课程高频考点,免费学习,助力一次通关

配套全套国网视频课程免费学习

课程专业名称
讲师
课时
查看课程
在线题库
面授课程更多>>
图书商城更多>>
在线报名
  • 报考专业:
    *(必填)
  • 姓名:
    *(必填)
  • 手机号码:
    *(必填)
返回顶部