当前位置:网站首页>瀚高数据库自定义操作符'!~~'
瀚高数据库自定义操作符'!~~'
2022-06-21 18:37:00 【51CTO】
瀚高数据库
目录
环境
文档用途
详细信息
环境系统平台:Microsoft Windows (64-bit) 10版本:5.6.5文档用途
解决应用程序中SQL语句使用!~~匹配操作符时,遇到的错误:
详细信息
一,测试准备
创建表并插入数据:
二,测试查询

三,解决方案:自定义操作符
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
);
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
四,再次查询

相关文档
边栏推荐
- Using fastjson to deserialize simplegrantedauthority in the security framework
- NetCore3.1 ping网络是否畅通及获取服务器Cpu、内存使用率
- mysql如何实现分组求和
- What statements are added to MySQL
- [cvpr2022] CMU tutorial on multimodal machine learning, 200+ pages to explain the knowledge of multimodal learning system with six challenges of representation, alignment, reasoning, migration, genera
- 金鱼哥RHCA回忆录:DO447Ansible Tower导航
- Codeforces Round #394 (Div. 2) E. Dasha and Puzzle
- flink-connector-mysql-cdc-2.2.0,生成全量快照阶段,是按照Table
- 使用 POST 向 ASP.NET Core 传递数据时的长度限制与解决方案
- Kubernetes migration of persistent volumes across storageclasses Complete Guide
猜你喜欢

Grain College p40~43

With a playback volume of up to 4000w+, how do couples get out of the ring by scattering dog food?

Uniapp applet opens the map and selects the location demo effect wx Chooselocation

大魚吃小魚小遊戲完整版

Gradle download and installation configuration

zabbix6.0+timescaledb+企业微信告警

mysql增加的语句是什么

How to query the data in MySQL

【CVPR2022】CMU《多模态机器学习》教程,200+页阐述表示、对齐、推理、迁移、生成与量化六大挑战的多模态学习系统知识

How to query the maximum ID value in MySQL
随机推荐
mysql如何实现分组求和
jmeter线程持续时间
Using fastjson to deserialize simplegrantedauthority in the security framework
国家认证--软件评测师考试要求
【ICML2022】CtrlFormer: 通过Transformer学习视觉控制的可迁移状态表示
How MySQL sums columns
Write down some pat topics (I)
软件测试办公工具推荐-桌面日历
Jupyter Notebook启动方式及相关问题
Inno setup change installation path learning
Zabbix6.0+timescaledb+ enterprise wechat alarm
Novice uses apiccloud visual development to build the mall home page
mysql与oracle有没有区别
深度学习图像数据增强
Whether there are keywords in MySQL
记一些PAT题目(一)
汇编语言贪吃蛇、俄罗斯方块双任务设计实现详解(一)——整体系统设计
Kubernetes migration of persistent volumes across storageclasses Complete Guide
HMS Core机器学习服务身份证识别功能,实现信息高效录入
【微信小程序】协同工作和发布 数据绑定