当前位置:网站首页>Gbase 8C string Operator
Gbase 8C string Operator
2022-07-24 00:16:00 【Dazhuang 12】
GBase 8c La base de données fournit quelques opérateurs de chaînes,Utilisez des mots clés plutôt que des virgules pour séparer les arguments dans ces fonctions.
- octet_length(string)
Description:Nombre d'octets dans la chaîne binaire.Type de valeur de retour:int
Exemple:
gbase=# SELECT octet_length(E'jo\\000se'::bytea) AS RESULT;
result
--------
5
(1 row)
- overlay(string placing string from int [for int])
Description:Remplacer les substrats.Type de valeur de retour:bytea
Exemple:
gbase=# SELECT overlay(E'Th\\000omas'::bytea placing E'\\002\\003'::bytea from 2 for 3) AS RESULT;
result
----------------
\x5402036d6173
(1 row)
- position(substring in string) Description:Emplacement d'une sous - chaîne spécifique.Type de valeur de retour:int
Exemple:
gbase=# SELECT position(E'\\000om'::bytea in E'Th\\000omas'::bytea) AS RESULT;
result
--------
3
(1 row)
- substring(string [from int] [for int])
Description:Tronquer les substrats.Type de valeur de retour:bytea
Exemple:
gbase=# SELECT substring(E'Th\\000omas'::bytea from 2 for 3) AS RESULT;
result
----------
\x68006f
(1 row)
- substr(string, from int [, for int])
Description:Tronquer les substrats.Type de valeur de retour:bytea
Exemple:
gbase=# select substr(E'Th\\000omas'::bytea,2, 3) as result;
result
----------
\x68006f
(1 row)
- trim([both] bytes from string)
Description:Destring Les suppressions de début et de fin ne contiennent que bytes Chaîne la plus longue en octets .Type de valeur de retour:bytea
Exemple:
gbase=# SELECT trim(E'\\000'::bytea from E'\\000Tom\\000'::bytea) AS RESULT;
result
----------
\x546f6d
(1 row)
边栏推荐
- Material return on investment
- YOLOv1
- Take stock of 10 new layer1 to prepare for the next bull market
- 473-82(40、662、31、98、189)
- Scheme for importing XMIND use cases into tapd (with code)
- 进步成长的快乐
- Linked list - 206. Reverse linked list (this question is very important)
- GBase 8c 访问权限访问函数(四)
- The name in Qiankun subapplication package.json becomes the default path
- Tencent will close the "magic core". Is there any resistance to the development of digital collections?
猜你喜欢
![[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area](/img/9b/f40054d91bda3a018e29b106ccd8bb.jpg)
[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area

Scheme for importing XMIND use cases into tapd (with code)

474-82(8、221、300)

Esp8266 - at command + network transparent transmission

子矩阵的和

The implementation in Oracle replaces the specified content of the specified column with the desired content

OA项目之我的会议(查询)

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

Mobile terminal H5 - a lifeline timeline

链表——206. 反转链表(这题很重要)
随机推荐
OA项目之我的会议(查询)
盘点为下个牛市做准备的10个新Layer1
Nacos
文本和图片的绘制、数据存储、localStorage、sessionStorage、cookie三者的区别
php实现 Stripe订阅
链表——707. 设计链表
Delete all data of specified query criteria in Oracle
单目标追踪——【相关滤波】MOSSE:Visual Object Tracking using Adaptive Correlation Filters
分布式之 CAP 原则
加密技术应用
Solution to the second game of 2022 Niuke multi school league
GBase 8c 访问权限查询函数(二)
vulnhub wpwn: 1
腾讯将关闭“幻核”,数字藏品领域发展是否面临阻力?
Tencent cloud was affirmed by international professional streaming media evaluation: video coding performance is the best in all three scenarios
Nacos
GBase 8c系统表信息函数(二)
IT基础英语
Intel Intel realsense realistic depth camera self calibration operation steps explanation D400 series is applicable
Tencent will close the "magic core". Is there any resistance to the development of digital collections?