当前位置:网站首页>PostgreSQL varchar[] 数组类型操作
PostgreSQL varchar[] 数组类型操作
2022-07-01 18:41:00 【稻草人0.0】
PostgreSQL varchar[] 数组类型操作:
| 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} |
边栏推荐
- Lumiprobe 活性染料丨吲哚菁绿说明书
- Redis 实现限流的三种方式
- How to operate technology related we media well?
- Create your own NFT collections and publish a Web3 application to show them (Introduction)
- 1. "Create your own NFT collections and publish a Web3 application to show them." what is NFT
- 苹果产品在日本全面涨价,iPhone13涨19%
- Navicat Premium 15 永久破解和2021版本最新IDEA破解(亲测有效)
- 11. Users, groups, and permissions (1)
- 6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
- How to operate technology related we media well?
猜你喜欢

实现一个Prometheus exporter

Huawei cloud experts explain the new features of gaussdb (for MySQL)

Leetcode-83 delete duplicate elements in the sorting linked list

Lumiprobe non fluorescent alkyne EU (5-ethynyluridine)

斯坦福、Salesforce|MaskViT:蒙面视觉预训练用于视频预测

Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference

6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单

Example explanation: move graph explorer to jupyterlab

【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决

PMP是被取消了吗??
随机推荐
Navicat Premium 15 永久破解和2021版本最新IDEA破解(亲测有效)
Redis 实现限流的三种方式
ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
实现一个Prometheus exporter
Usage and underlying implementation principle of PriorityQueue
Mipi interface, DVP interface and CSI interface of camera [easy to understand]
Lake Shore—CRX-EM-HF 型低温探针台
数据库基础:select基本查询语句
微服务大行其道的今天,Service Mesh是怎样一种存在?
【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
Write an open source, convenient and fast database document query and generation tool with WPF
Qfile read / write file operation in QT
Go语言自学系列 | go语言数据类型
Lake Shore 连续流动低温恒温器传输线
毕业总结
3. "Create your own NFT collections and publish a Web3 application to show them" cast NFT locally
The R language uses the tablestack function of epidisplay package to make statistical summary tables (descriptive statistics based on the grouping of target variables, hypothesis testing, etc.). If th
Viewing technological changes through Huawei Corps (VI): smart highway
Yyds dry inventory ravendb start client API (III)
Huawei game failed to initialize init with error code 907135000