当前位置:网站首页>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} |
边栏推荐
- Li Kou daily question - Day 32 -1232 Dotted line
- Leetcode-160 intersecting linked list
- kubernetes命令入门(namespaces,pods)
- Why do independent website sellers start to do social media marketing? The original customer conversion rate can be improved so much!
- Lumiprobe lumizol RNA extraction reagent solution
- Taiaisu M source code construction, peak store app premium consignment source code sharing
- docker 部署mysql8.0
- 机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效
- Altair HyperWorks 2022 software installation package and installation tutorial
- Leetcode-141 circular linked list
猜你喜欢

实例讲解将Graph Explorer搬上JupyterLab

有关 M91 快速霍尔测量仪的更多信息

如何使用物联网低代码平台进行个人设置?

Evaluation of 6 red, yellow and black list cameras: who is the safest? Who has good picture quality? From now on, let you no longer step on thunder

Leetcode-160 intersecting linked list

The market value evaporated by 74billion yuan, and the big man turned and entered the prefabricated vegetables

Games202 operation 0 - environment building process & solving problems encountered

M91快速霍尔测量仪—在更短的时间内进行更好的测量

3. "Create your own NFT collections and publish a Web3 application to show them" cast NFT locally

【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
随机推荐
11、用户、组和权限(1)
Lake Shore M91快速霍尔测量仪
JS find the next adjacent element of the number in the array
AI training speed breaks Moore's law; Song shuran's team won the RSS 2022 Best Paper Award
C-end dream is difficult to achieve. What does iFLYTEK rely on to support the goal of 1billion users?
Lake Shore—OptiMag 超导磁体系统 — OM 系列
Leetcode-21 combines two ordered linked lists
宏观视角看抖音全生态
PriorityQueue的用法和底层实现原理
Evaluation of 6 red, yellow and black list cameras: who is the safest? Who has good picture quality? From now on, let you no longer step on thunder
Salesmartly has some tricks for Facebook chat!
华为云专家详解GaussDB(for MySQL)新特性
[live broadcast appointment] database obcp certification comprehensive upgrade open class
水产行业智能供应链管理平台解决方案:支撑企业供应链数字化,提升企业管理效益
After studying 11 kinds of real-time chat software, I found that they all have these functions
【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
Stanford, salesforce|maskvit: masked vision pre training for video prediction
Privacy sandbox is finally coming
Love business in Little Red Book
Gameframework eating guide