数学函数

分布式数据库 GaiaDB-X DRDS

  • 术语表
  • 产品定价
  • 产品描述
    • 介绍
    • 优势
    • 基本原理
    • 应用场景
    • 特性
    • 功能发布记录
  • 开发指南
    • 运算符
    • 开发限制
    • 函数
      • 聚合函数
      • 字符串函数
      • 加密与压缩函数
      • 流程控制函数
      • 数学函数
      • 信息函数
      • 转换函数
      • 日期时间函数
      • 比较函数
      • 位函数
    • DDL语句
      • AUTO_INCREMENT
      • DROP TABLE
      • CREATE TABLE
      • RENAME TABLE
      • CREATE DATABASE
      • DROP DATABASE
    • 数据类型
      • 数值类型
      • 字符串类型
      • JSON类型
      • 日期和时间类型
      • Collation类型
    • DML语句
      • INSERT
      • SOURCE
      • REPLACE
      • DELETE
      • UPDATE
  • 重要通知
    • 品牌升级
  • 快速入门
    • 首次使用引导
    • 创建数据库
    • 执行SQL基本操作
    • 创建实例
  • 服务等级协议SLA
    • GaiaDB-X服务等级协议SLA
  • API参考
    • 通用说明
    • 其他接口
    • SampleCode
    • 实例管理接口说明
    • 账号管理接口说明
    • 目录
    • 白名单管理接口说明
    • 数据库管理接口说明
    • 数据表管理接口说明
  • 常见问题
    • 配置类问题
  • 用户指南
    • 备份与恢复
    • 参数设置
    • 登录、创建实例
    • 监控报警
    • 连接云数据库-DRDS-实例
    • 操作指引
    • 连接数据库
    • 节点详情
      • 代理节点
      • 存储节点
        • 存储节点变更配置
        • 存储节点
      • 只读节点
        • 只读节点
        • 释放只读节点
        • 添加只读节点
    • 实例管理
      • 修改实例名称、域名
      • 实例变配
      • 高级设置
      • 增加和减少节点
      • 释放实例
    • 数据库管理
      • 删除数据库
      • 使用限制
      • 创建数据库
      • 管理数据库
    • 账号和安全
      • 修改账号密码
      • 修改权限
      • 管理数据库账号
      • 删除账号
      • 设置白名单
所有文档
menu
没有找到结果,请重新输入

分布式数据库 GaiaDB-X DRDS

  • 术语表
  • 产品定价
  • 产品描述
    • 介绍
    • 优势
    • 基本原理
    • 应用场景
    • 特性
    • 功能发布记录
  • 开发指南
    • 运算符
    • 开发限制
    • 函数
      • 聚合函数
      • 字符串函数
      • 加密与压缩函数
      • 流程控制函数
      • 数学函数
      • 信息函数
      • 转换函数
      • 日期时间函数
      • 比较函数
      • 位函数
    • DDL语句
      • AUTO_INCREMENT
      • DROP TABLE
      • CREATE TABLE
      • RENAME TABLE
      • CREATE DATABASE
      • DROP DATABASE
    • 数据类型
      • 数值类型
      • 字符串类型
      • JSON类型
      • 日期和时间类型
      • Collation类型
    • DML语句
      • INSERT
      • SOURCE
      • REPLACE
      • DELETE
      • UPDATE
  • 重要通知
    • 品牌升级
  • 快速入门
    • 首次使用引导
    • 创建数据库
    • 执行SQL基本操作
    • 创建实例
  • 服务等级协议SLA
    • GaiaDB-X服务等级协议SLA
  • API参考
    • 通用说明
    • 其他接口
    • SampleCode
    • 实例管理接口说明
    • 账号管理接口说明
    • 目录
    • 白名单管理接口说明
    • 数据库管理接口说明
    • 数据表管理接口说明
  • 常见问题
    • 配置类问题
  • 用户指南
    • 备份与恢复
    • 参数设置
    • 登录、创建实例
    • 监控报警
    • 连接云数据库-DRDS-实例
    • 操作指引
    • 连接数据库
    • 节点详情
      • 代理节点
      • 存储节点
        • 存储节点变更配置
        • 存储节点
      • 只读节点
        • 只读节点
        • 释放只读节点
        • 添加只读节点
    • 实例管理
      • 修改实例名称、域名
      • 实例变配
      • 高级设置
      • 增加和减少节点
      • 释放实例
    • 数据库管理
      • 删除数据库
      • 使用限制
      • 创建数据库
      • 管理数据库
    • 账号和安全
      • 修改账号密码
      • 修改权限
      • 管理数据库账号
      • 删除账号
      • 设置白名单
  • 文档中心
  • arrow
  • 分布式数据库 GaiaDB-XDRDS
  • arrow
  • 开发指南
  • arrow
  • 函数
  • arrow
  • 数学函数

数学函数

更新时间:2025-08-21

本文介绍了 GaiaDB-X 支持的数学函数。

函数名 描述
ASCII() Return numeric value of left-most character
BIN() Return a string containing binary representation of a number
BIT_LENGTH() Return length of argument in bits
CHAR() Return the character for each integer passed
CHAR_LENGTH() Return number of characters in argument
CHARACTER_LENGTH() Synonym for CHAR_LENGTH()
CONCAT() Return concatenated string
CONCAT_WS() Return concatenate with separator
ELT() Return string at index number
EXPORT_SET() Return a string such that for every bit set in the value bits, you get an on string and for every unset bit, you get an off string
FIELD() Index (position) of first argument in subsequent arguments
FORMAT() Return a number formatted to specified number of decimal places
FROM_BASE64() Decode base64 encoded string and return result
HEX() Hexadecimal representation of decimal or string value
INSERT() Insert substring at specified position up to specified number of characters
INSTR() Return the index of the first occurrence of substring
LCASE() Synonym for LOWER()
LEFT() Return the leftmost number of characters as specified
LENGTH() Return the length of a string in bytes
LIKE Simple pattern matching
LOCATE() Return the position of the first occurrence of substring
LOWER() Return the argument in lowercase
LPAD() Return the string argument, left-padded with the specified string
LTRIM() Remove leading spaces
MAKE_SET() Return a set of comma-separated strings that have the corresponding bit in bits set
MID() Return a substring starting from the specified position
NOT LIKE Negation of simple pattern matching
NOT REGEXP Negation of REGEXP
OCT() Return a string containing octal representation of a number
OCTET_LENGTH() Synonym for LENGTH()
ORD() Return character code for leftmost character of the argument
POSITION() Synonym for LOCATE()
QUOTE() Escape the argument for use in an SQL statement
REGEXP Whether string matches regular expression
REPEAT() Repeat a string the specified number of times
REPLACE() Replace occurrences of a specified string
REVERSE() Reverse the characters in a string
RIGHT() Return the specified rightmost number of characters
RLIKE Whether string matches regular expression
RPAD() Append string the specified number of times
RTRIM() Remove trailing spaces
SOUNDEX() Return a soundex string
SPACE() Return a string of the specified number of spaces
STRCMP() Compare two strings
SUBSTR() Return the substring as specified
SUBSTRING() Return the substring as specified
SUBSTRING_INDEX() Return a substring from a string before the specified number of occurrences of the delimiter
TO_BASE64() Return the argument converted to a base-64 string
TRIM() Remove leading and trailing spaces
UCASE() Synonym for UPPER()
UNHEX() Return a string containing hex representation of a number
UPPER() Convert to uppercase
WEIGHT_STRING() Return the weight string for a string

相比MySQL5.7,GaiaDB-X 暂不支持的函数,如下

函数名 描述
FIND_IN_SET() Return the index position of the first argument within the second argument
LOAD_FILE() Load the named file
MATCH Perform full-text search
SOUNDS LIKE Compare sounds

上一篇
流程控制函数
下一篇
信息函数