当前位置:网站首页>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} |
边栏推荐
- 数据库基础:select基本查询语句
- Navicat premium 15 permanent cracking and 2021 latest idea cracking (valid for personal testing)
- Salesmartly has some tricks for Facebook chat!
- Stanford, salesforce|maskvit: masked vision pre training for video prediction
- 2020,最新手机号码手机验证正则表达式,持续更新
- VBA simple macro programming of Excel
- golang 错误处理
- 华为云专家详解GaussDB(for MySQL)新特性
- SuperOptiMag 超导磁体系统 — SOM、SOM2 系列
- Qfile read / write file operation in QT
猜你喜欢

水产行业智能供应链管理平台解决方案:支撑企业供应链数字化,提升企业管理效益

AI training speed breaks Moore's law; Song shuran's team won the RSS 2022 Best Paper Award

The former 4A executives engaged in agent operation and won an IPO

Lumiprobe 亚磷酰胺丨六甘醇亚磷酰胺说明书

Leetcode-141 circular linked list

Navicat Premium 15 永久破解和2021版本最新IDEA破解(亲测有效)

生鲜行业B2B电商平台解决方案,提高企业交易流程标准化和透明度

Example explanation: move graph explorer to jupyterlab

Viewing technological changes through Huawei Corps (VI): smart highway

Li Kou daily question - Day 32 -589 N × Preorder traversal of tree
随机推荐
Database foundation: select basic query statement
实现一个Prometheus exporter
Leetcode-83 delete duplicate elements in the sorting linked list
After studying 11 kinds of real-time chat software, I found that they all have these functions
How to use the low code platform of the Internet of things for personal settings?
MySQL常用图形管理工具 | 黑马程序员
Implement a Prometheus exporter
有关 M91 快速霍尔测量仪的更多信息
Lumiprobe 细胞成像研究丨PKH26细胞膜标记试剂盒
Basic knowledge and commands of disk
Viewing the whole ecology of Tiktok from a macro perspective
如何在自有APP内实现小程序实现连麦直播
Write it down once Net travel management background CPU Explosion Analysis
PriorityQueue的用法和底层实现原理
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
Docker deploy mysql8.0
Clean up system cache and free memory under Linux
Qfile read / write file operation in QT
Love business in Little Red Book