当前位置:网站首页>Gbase 8C binary string operator
Gbase 8C binary string operator
2022-07-24 00:16:00 【Dazhuang twelve】
GBase 8c Provides common function call syntax .
- btrim(string bytea,bytes bytea)
describe : from string The beginning and end of delete only contain bytes The longest string in bytes . return type :bytea
Example :
gbase=# SELECT btrim(E'\\000trim\\000'::bytea, E'\\000'::bytea) AS RESULT;
result
------------
\x7472696d
(1 row)
- get_bit(string, offset)
describe : Extract bits from the string . return type :int
Example :
gbase=# SELECT get_bit(E'Th\\000omas'::bytea, 45) AS RESULT;
result
--------
1
(1 row)
- get_byte(string, offset)
describe : Extract bytes from string . return type :int
Example :
gbase=# SELECT get_byte(E'Th\\000omas'::bytea, 4) AS RESULT;
result
--------
109
(1 row)
- rawcmp
describe :raw Data type comparison function . Parameters :raw, raw
return type :integer
- raweq
describe :raw Data type comparison function . Parameters :raw, raw
return type :boolean
- rawge
describe :raw Data type comparison function . Parameters :raw, raw
return type :boolean
- rawgt
describe :raw Data type comparison function . Parameters :raw, raw
return type :boolean
- rawin
describe :raw Data type parsing function . Parameters :cstring
return type :bytea
- rawle
describe :raw Data type parsing function . Parameters :raw, raw
return type :boolean
- rawlike
describe :raw Data type parsing function . Parameters :raw, raw
return type :boolean
- rawlt
describe :raw Data type parsing function . Parameters :raw, raw
return type :boolean
- rawne
describe : Compare raw Whether the type is the same . Parameters :raw, raw
return type :boolean
- rawnlike
describe : Compare raw Whether the type does not match the pattern . Parameters :raw, raw
return type :boolean
- rawout
describe :RAW Output interface of type . Parameters :bytea
return type :cstring
- rawsend
describe : transformation bytea For binary type . Parameters :raw
return type :bytea
- rawtohex
describe :raw Format is converted to hexadecimal . Parameters :text
return type :text
- set_bit(string,offset, newvalue)
describe : Set the bit in the string . return type :bytea
Example :
gbase=# SELECT set_bit(E'Th\\000omas'::bytea, 45, 0) AS RESULT;
result
------------------
\x5468006f6d4173
(1 row)
- set_byte(string,offset, newvalue)
describe : Set the bytes in the string . return type :bytea
Example :
gbase=# SELECT set_byte(E'Th\\000omas'::bytea, 4, 64) AS RESULT;
result
------------------
\x5468006f406173
(1 row)
边栏推荐
- Deep learning 9 feedforward neural network 2: realize feedforward neural network and model optimization
- 加密技术应用
- JMeter中的自动转义处理
- C language explanation series -- understanding of functions (2) how to use functions to exchange the values of two integer variables
- 今天在家里补觉
- 【HCIP】MGRE环境下OSPF实验,含多进程双向重发布及OSPF特殊区域
- What are blue-green deployment, Canary release and a/b test
- Pytest interface automation testing framework | multi process running case
- 理解多态,让不同的“人”做同一件事情会产生不同的结果
- Pipeline pipeline project is built by declarative and jenkinsfile under Jenkins
猜你喜欢
随机推荐
Pytest interface automation test framework | control test case execution
【低代码】低代码发展的局限性
Summarize the plan, clarify the direction, concentrate and start a new situation -- the Counterpart Assistance Project of hexu software has achieved remarkable results
mongodb的多数据源配置
FPGA——SPI总线控制flash(3)含代码
单目标追踪——【相关滤波】MOSSE:Visual Object Tracking using Adaptive Correlation Filters
Joinable and detached of pthread
Deep learning 9 basic concepts of feedforward neural networks
GBase 8c 模式可见性查询函数(一)
vulnhub wpwn: 1
在原生终端实现类似 rz、sz 上传下载文件与目录的功能
docker 拉取redis镜像 并运行
【Android Kotlin】Property、Getter 和 Setter
Structured streaming programming model (input table, result table, output mode...)
学习的快乐很多
After openfeign sets circuitbreaker=true, feign's readtimeout expires
Space shooting lesson 07: add graphics
docker搭建sonarqube,mysql5.7环境
JMeter中的自动转义处理
Take a nap at home today









