当前位置:网站首页>Henkel database custom operator '~~‘
Henkel database custom operator '~~‘
2022-06-26 05:14:00 【Henkel PG Lab】
Henkel database
Catalog
Environmental Science
Document purpose
Details
Environmental Science
system platform :Microsoft Windows (64-bit) 10
edition :5.6.5
Document purpose
Solve problems in the application SQL Statements use !~~ When matching operators , Mistakes encountered :
ERROR: 42883: operator does not exist: integer !~~ integer
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Details
One , Test preparation
Create tables and insert data :
create TABLE oper_test(first_num int);
insert into oper_test values(234),(446),(467);
Two , Test the query
select (446 !~~ first_num) newlist from oper_test;

3、 ... and , Solution : Custom operators
CREATE OR REPLACE FUNCTION hgdb_catalog.intnlike(integer,integer)
RETURNS boolean AS $$
select $1::varchar !~~ $2::varchar;
$$
LANGUAGE sql strict;
ALTER FUNCTION intnlike(integer, integer)
OWNER TO highgo;
COMMENT ON FUNCTION intnlike(integer,integer) IS 'implementation of !~~ operator';
create operator hgdb_catalog.!~~(
procedure = hgdb_catalog.intnlike,
leftarg = integer,
rightarg = integer
);
Four , Query again

边栏推荐
- Astype conversion data type
- Pycharm package import error without warning
- Practical cases | getting started and mastering tkinter+pyinstaller
- Install the tp6.0 framework under windows, picture and text. Thinkphp6.0 installation tutorial
- [IDE(ImageBed)]Picgo+Typora+aliyunOSS部署博客图床(2022.6)
- 86.(cesium篇)cesium叠加面接收阴影效果(gltf模型)
- date_ Range creation date range freq parameter value table and creation example
- Codeforces Round #800 (Div. 2)
- 两步处理字符串正则匹配得到JSON列表
- Computer Vision Tools Chain
猜你喜欢

ModuleNotFoundError: No module named ‘numpy‘

How to rewrite a pseudo static URL created by zenpart

The beautiful scenery is natural, and the wonderful pen is obtained by chance -- how is the "wonderful pen" refined?

UWB ultra high precision positioning system architecture

-Discrete Mathematics - Analysis of final exercises

Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing

What is UWB in ultra-high precision positioning system

cartographer_ fast_ correlative_ scan_ matcher_ 2D branch and bound rough matching
Technical problems to be faced in mobile terminal im development

Ad tutorial series | 4 - creating an integration library file
随机推荐
PHP one sentence Trojan horse
Zuul 实现动态路由
zencart新建的URL怎么重写伪静态
localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。
SSH connected to win10 and reported an error: permission denied (publickey, keyboard interactive)
Muke.com actual combat course
Windows下安装Tp6.0框架,图文。Thinkphp6.0安装教程
Mise en œuvre du routage dynamique par zuul
Apktool tool usage document
As promised: Mars, the mobile terminal IM network layer cross platform component library used by wechat, has been officially open source
PHP二维/多维数组按照指定的键值来进行升序和降序
data = self._data_queue.get(timeout=timeout)
Guanghetong and anti international bring 5g R16 powerful performance to the AI edge computing platform based on NVIDIA Jetson Xavier nx
date_ Range creation date range freq parameter value table and creation example
cartographer_backend_constraint
tensorlow:cifar100_ train
Technical problems to be faced in mobile terminal im development
vscode config
6.1 - 6.2 introduction to public key cryptography
[quartz] read configuration from database to realize dynamic timing task