当前位置:网站首页>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)
边栏推荐
- 474-82(8、221、300)
- Super simple training of force deduction and problem brushing
- Esp8266 - at command + network transparent transmission
- Lac automatic dialing experiment of L2TP
- [attack and defense world web] difficulty five-star 15 point advanced question: bug
- Summarize the plan, clarify the direction, concentrate and start a new situation -- the Counterpart Assistance Project of hexu software has achieved remarkable results
- 深度学习之 9 前馈神经网络 基本概念
- 【译】Go RPC 入门:Hello World
- kubernetes error
- Nacos
猜你喜欢

jenkins下使用声明式(Declarative)和Jenkinsfile的方式构建Pipeline流水线项目

Linked list - 707. Design linked list

Redis 集群hash分片算法(槽位定位算法)

Mobile terminal H5 - a lifeline timeline

What are blue-green deployment, Canary release and a/b test

ESP8266————AT指令+网络透传

Take stock of 10 new layer1 to prepare for the next bull market

vulnhub wpwn: 1
C语言详解系列——函数的认识(2)如何使用函数实现交换两个整型变量的值

Y75. Chapter IV Prometheus factory monitoring system and practice -- Prometheus alarm setting (VI)
随机推荐
Educational Codeforces Round 132 (Rated for Div. 2)(A-D)
分布式之 CAP 原则
php实现 Stripe订阅
Super simple training of force deduction and problem brushing
paypal订阅流程及api请求
logback
【语音合成】TensorFlowTTS 中文文本转语音
[speech synthesis] tensorflowtts Chinese text to speech
Solution to the second game of 2022 Niuke multi school league
day2
学习的快乐很多
inode、软链接、硬链接
IT基础英语
2022年7月23日——mapper文件说明
Mysql database foundation
iNFTnews | 呵护“雪山精灵”,42VERSE“数字生态保护”公益项目即将盛启
As a programmer, is there anything you want to say to the newcomer?
Tool recommendation - YuQue
Tencent will close the "magic core". Is there any resistance to the development of digital collections?
Docker builds sonarqube, mysql5.7 environment