当前位置:网站首页>Pg/oracle database ASCII code to string custom function
Pg/oracle database ASCII code to string custom function
2022-06-11 08:17:00 【Want Xiaoxin】
pg ascii Code to string function
Here comes a message from ascii Code concatenated string , Convert to a string in the database
CREATE OR REPLACE FUNCTION dc_bill.f_xdo_to_assii(p_str character varying)
RETURNS character varying
LANGUAGE plpgsql
AS $function$
declare
resul varchar='';-- Define the return result
init Integer ;-- Definition loop
strLength Integer;-- Define string length
begin
IF length(p_str)>0 then
strLength :=length(p_str)-length(replace(p_str,',',''))+1;
-- Calculate string length
FOR i in 1..strLength loop
init=split_part(p_str,',',i);-- Split characters
resul:=resul||chr(init);--ascii Convert the string and splice it into a result
end loop;
return resul;
end if;
return resul;
end; $function$
;
oracle ascii Code to string function
CREATE OR REPLACE FUNCTION DC_BILL.f_xdo_to_assii(p_str varchar)
RETURN varchar AS
resul varchar2(50):='';
init varchar2(50);
strLength NUMBER;
BEGIN
IF length(p_str)>0 then
strLength :=length(p_str)-length(replace(p_str,',',''))+1;
FOR i IN 1..strLength LOOP
init := chr(REGEXP_SUBSTR (p_str, '[^,]+', 1,i));
resul :=RESUL||init;
END LOOP;
RETURN resul;
END IF;
RETURN resul;
END;
边栏推荐
- Pypharm startup is stuck, loading project
- C. Manipulating History(贪心/哈希/思维/好题)
- C. Managing history (greedy / hashing / thinking / good questions)
- ICML2022有意思的文章
- These gadgets are also very easy to use
- TypeScript-unknown类型
- Record a murder case caused by ignoring the @suppresslint ("newapi") prompt
- node报错整理
- TypeScript-分布式条件类型
- Layout of code setting constraintlayout_ constraintDimensionRatio
猜你喜欢

torch. nn. functional. pad

(taking pytorch as an example) a simple understanding of the regularization method of path (depth) -drop path

TypeScript-头文件使用细节

Node error report sorting

图数据库无缝集成Tushare接口

Bladed入門教程(視頻)

Figure seamless database integration tushare interface

Summary of evaluation index knowledge points in target detection: summary of IOU cross overlap unit and map/ap/tp/fp/np

Study the Analects of entanglement

2022.6.7 special student simulation
随机推荐
YUV数据的裁剪与重叠
TypeScript-可辨识联合
(completely solved) dataframe assignment settingwithcopywarning: a value is trying to be set on a copy of a slice
TypeScript-命名空间
Clipping and overlapping of YUV data
Deep understanding of add in argparse module_ Argument parameters (such as action)
Alchemy experience (model training of deep learning) the necessity of timely adjusting training parameters for some situations (the adjustment of learning rate LR is the primary) summarizes some metho
ICML2022有意思的文章
(resolved) pychart debug error -unicode decodeerror: 'UTF-8' codec can't decode byte 0xe8 in position 1023
Typescript class and interface, class and generic, interface merging
Use of Excel to XML tool of TestLink
安卓初中级开发基础知识整理(面试自用)
How to find the complementary sequence of digraph
Dameng database startup and shutdown
Solve valueerror: no model found in config file
Summary of embedded software interview questions
通过ComponentCallbacks2来接收onTrimMemory等回调,并mock对应的场景
Project training - clonemon
Difference between threadpooltaskexecutor and ThreadPoolExecutor
自定义ViewGroup的知识点总结-持续更新