当前位置:网站首页>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} |
边栏推荐
- 6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
- [quick application] win7 system cannot run and debug projects using Huawei ide
- Chaos engineering platform chaosblade box new heavy release
- 一次SQL优化,数据库查询速度提升 60 倍
- Shell array
- Taiaisu M source code construction, peak store app premium consignment source code sharing
- 助力数字经济发展,夯实数字人才底座—数字人才大赛在昆成功举办
- M91 fast hall measuring instrument - better measurement in a shorter time
- PostgreSQL varchar[] 数组类型操作
- 3. "Create your own NFT collections and publish a Web3 application to show them" cast NFT locally
猜你喜欢

Solidity - 算术运算的截断模式(unchecked)与检查模式(checked)- 0.8.0新特性

Solution of intelligent supply chain management platform in aquatic industry: support the digitalization of enterprise supply chain and improve enterprise management efficiency

MySQL常用图形管理工具 | 黑马程序员

SuperOptiMag 超导磁体系统 — SOM、SOM2 系列

【Go ~ 0到1 】 第五天 7月1 类型别名,自定义类型,接口,包与初始化函数

ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing

linux下清理系统缓存并释放内存

华为云专家详解GaussDB(for MySQL)新特性

Improve yolov5 with gsconv+slim neck to maximize performance!

一次SQL优化,数据库查询速度提升 60 倍
随机推荐
Improve yolov5 with gsconv+slim neck to maximize performance!
M91 fast hall measuring instrument - better measurement in a shorter time
Cdga | if you are engaged in the communication industry, you should get a data management certificate
Go language self-study series | go language data type
数据仓库(四)之ETL开发
云服务器ECS夏日省钱秘籍,这次@老用户快来领走
SuperOptiMag 超导磁体系统 — SOM、SOM2 系列
Lean thinking: source, pillar, landing. I understand it after reading this article
Database foundation: select basic query statement
Solution of intelligent supply chain management platform in aquatic industry: support the digitalization of enterprise supply chain and improve enterprise management efficiency
Redis 实现限流的三种方式
前4A高管搞代运营,拿下一个IPO
Summary of cases of players' disconnection and reconnection in Huawei online battle service
11、用户、组和权限(1)
宝,运维100+服务器很头疼怎么办?用行云管家!
Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
Lumiprobe 自由基分析丨H2DCFDA说明书
2020, the regular expression for mobile phone verification of the latest mobile phone number is continuously updated
How to realize the bottom layer of read-write lock in go question bank 16
学习笔记-JDBC连接数据库操作的步骤