当前位置:网站首页>PostgreSQL varchar[] array type operation
PostgreSQL varchar[] array type operation
2022-07-01 19:20:00 【Scarecrow 0.0】
PostgreSQL varchar[] Array type operation :
Operator | Description | Example | Result |
---|---|---|---|
= | equal | ARRAY[1.1,2.1,3.1]::int[] = ARRAY[1,2,3] | t |
<> | not equal | ARRAY[1,2,3] <> ARRAY[1,2,4] | t |
< | less than | ARRAY[1,2,3] < ARRAY[1,2,4] | t |
> | greater than | ARRAY[1,4,3] > ARRAY[1,2,4] | t |
<= | less than or equal | ARRAY[1,2,3] <= ARRAY[1,2,3] | t |
>= | greater than or equal | ARRAY[1,4,3] >= ARRAY[1,4,3] | t |
@> | contains | ARRAY[1,4,3] @> ARRAY[3,1] | t |
<@ | is contained by | ARRAY[2,7] <@ ARRAY[1,7,4,2,6] | t |
&& | overlap (have elements in common) | ARRAY[1,4,3] && ARRAY[2,1] | t |
|| | array-to-array concatenation | ARRAY[1,2,3] || ARRAY[4,5,6] | {1,2,3,4,5,6} |
|| | array-to-array concatenation | ARRAY[1,2,3] || ARRAY[[4,5,6],[7,8,9]] | { {1,2,3},{4,5,6},{7,8,9}} |
|| | element-to-array concatenation | 3 || ARRAY[4,5,6] | {3,4,5,6} |
|| | array-to-element concatenation | ARRAY[4,5,6] || 7 | {4,5,6,7} |
边栏推荐
- Usage and underlying implementation principle of PriorityQueue
- M91 fast hall measuring instrument - better measurement in a shorter time
- Viewing technological changes through Huawei Corps (VI): smart highway
- AppGallery Connect场景化开发实战—图片存储分享
- The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise
- Redis 实现限流的三种方式
- Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
- Altair HyperWorks 2022 software installation package and installation tutorial
- Once the SQL is optimized, the database query speed is increased by 60 times
- XML语法、约束
猜你喜欢
B2B e-commerce platform solution for fresh food industry to improve the standardization and transparency of enterprise transaction process
More information about M91 fast hall measuring instrument
MySQL常用图形管理工具 | 黑马程序员
【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
Docker deploy mysql8.0
Improve yolov5 with gsconv+slim neck to maximize performance!
Is PMP cancelled??
Lake Shore—CRX-EM-HF 型低温探针台
AI training speed breaks Moore's law; Song shuran's team won the RSS 2022 Best Paper Award
机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效
随机推荐
【快应用】Win7系统使用华为IDE无法运行和调试项目
B2B e-commerce platform solution for fresh food industry to improve the standardization and transparency of enterprise transaction process
lefse分析
一次SQL优化,数据库查询速度提升 60 倍
太爱速M源码搭建,巅峰小店APP溢价寄卖源码分享
bean的生命周期核心步骤总结
小红书上的爱情买卖
Huawei game failed to initialize init with error code 907135000
SuperOptiMag 超导磁体系统 — SOM、SOM2 系列
11. Users, groups, and permissions (1)
Gameframework eating guide
C-end dream is difficult to achieve. What does iFLYTEK rely on to support the goal of 1billion users?
Boost the development of digital economy and consolidate the base of digital talents - the digital talent competition was successfully held in Kunming
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?
JS find the next adjacent element of the number in the array
The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise
中英说明书丨人可溶性晚期糖基化终末产物受体(sRAGE)Elisa试剂盒
Lake Shore 连续流动低温恒温器传输线
ES6数组方法find()、findIndex()的总结「建议收藏」
华为联机对战服务玩家掉线重连案例总结