oracleto_char格式化函数剖析.pdfVIP

  • 3
  • 0
  • 约1.53万字
  • 约 14页
  • 2021-02-02 发布于天津
  • 举报
Oracle to_char 格式化函数 Postgres 格式化函数提供一套有效的工具用于把各种数据类型(日期 /时间, int ,float , numeric )转换成格式化的字符串以及反过来从格式化的字符串转换成原始的数据类型。 注意: 所有格式化函数的第二个参数是用于转换的模板。 表 5-7. 格式化函数 函数 返回 描述 例子 to_char (timestamp, text 把 timestamp 转 to_char (timestamp text) 换成 string now,HH12:MI:SS) to_char (int, text) text 把 int4/int8 转 to_char (125, 999) 换成 string to_char (float, text 把 to_char (125.8, 999D9

文档评论(0)

1亿VIP精品文档

相关文档