ORACLE函数TO_CHAR以及数字转换格式(国外英文资料).doc

ORACLE函数TO_CHAR以及数字转换格式(国外英文资料).doc

  1. 1、本文档共19页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ORACLE函数TO_CHAR以及数字转换格式(国外英文资料)

ORACLE函数TO_CHAR以及数字转换格式 This function turns the parameter N into a value of the VARCHAR2 type. N could be NUMBER, BINARY_FLOAT, or BINARY_DOUBLE. If you dont have a format, then the function converts N into a VARCHAR2 string that represents N. Format reference: The serial number Format simplified example 1, (comma) 9999999 comma, generally appears in micrometer level, used as a grouping symbols. If you need you can also as very, percentile, can appear N times, depending on the size of the figure. The abnormal example is to_char (1234, 9, 9, 9). Note: only appear in the integer section. 2. (dot) 99.99 period, do not read as end, end is a circle, some good can only appear in the decimal point corresponding place. Can only appear once. To_char (1234.34, 9, 9, 9, 9.99) Note: only in one place is the original data point location 3 $(dollar sign) $999.99. You can actually put it anywhere (under 10G) To_char (1234.34, 9, 9, 9, 9. $99) Note: only once. 4 0 (0) 0999.99 Zero. Return the corresponding character in the corresponding location, if not, if not, fill in 0. To_char (0.34, 9, 9, 9, 0. $99) = $0.34; To_char (1234, 9999.00) = 1234.00; Note: this is a mandatory symbol, the corresponding bits are not, and they are filled with o, which is a lot of different places 5, 9 999.99 In the decimal place, the representation is converted to the corresponding character, if it is not represented by 0. In the integer bits, there is no corresponding unfilled character. To_char (123, 999.99) = 123.00; TO_CHAR (123, 99999.9) = 123.0; Note: for 0 and 9, if the number of formats is not as large as the number of digits, it will return #. For example, to_char (12345, 9999) = # # # 6 B (space character) B999 has no other special effects, adding a space at the front of the integer section to appear in any location. S | | TO_CHAR (1234, 99B99) = S 1234; Note: only in the integer area. The 7 C (international monetary symbol) C9999 returns an ISO currency symbol in a specific location (the value

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档