电话:0731-83595998
导航

Oracletochar的用法的描述

来源: 2017-10-17 20:15

  以下的文章主要是对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.

编辑推荐:

下载Word文档

温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)

网络课程 新人注册送三重礼

已有 22658 名学员学习以下课程通过考试

网友评论(共0条评论)

请自觉遵守互联网相关政策法规,评论内容只代表网友观点!

最新评论

点击加载更多评论>>

精品课程

更多
10781人学习

免费试听更多

相关推荐
图书更多+
  • 电网书籍
  • 财会书籍
  • 其它工学书籍
拼团课程更多+
  • 电气拼团课程
  • 财会拼团课程
  • 其它工学拼团
热门排行

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端