当前位置:网站首页>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} |
边栏推荐
- JS find the next adjacent element of the number in the array
- Golang error handling
- 6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
- 混沌工程平台 ChaosBlade-Box 新版重磅发布
- C端梦难做,科大讯飞靠什么撑起10亿用户目标?
- Create your own NFT collections and publish a Web3 application to show them (Introduction)
- Boost the development of digital economy and consolidate the base of digital talents - the digital talent competition was successfully held in Kunming
- Lake Shore—CRX-EM-HF 型低温探针台
- 【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
- Solidity - 算术运算的截断模式(unchecked)与检查模式(checked)- 0.8.0新特性
猜你喜欢

Learn MySQL from scratch - database and data table operations

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

Lake Shore低温恒温器的氦气传输线

网易游戏,激进出海

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

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

Dom4J解析XML、Xpath检索XML

Lumiprobe 细胞成像研究丨PKH26细胞膜标记试剂盒

B2B e-commerce platform solution for fresh food industry to improve the standardization and transparency of enterprise transaction process

Games202 operation 0 - environment building process & solving problems encountered
随机推荐
ES6数组方法find()、findIndex()的总结「建议收藏」
【Go ~ 0到1 】 第五天 7月1 类型别名,自定义类型,接口,包与初始化函数
【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
从零开始学 MySQL —数据库和数据表操作
Example explanation: move graph explorer to jupyterlab
Altair HyperWorks 2022软件安装包和安装教程
Shell array
小红书上的爱情买卖
Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference
毕业总结
精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会
宝,运维100+服务器很头疼怎么办?用行云管家!
Chaos engineering platform chaosblade box new heavy release
Three ways for redis to realize current limiting
M91 fast hall measuring instrument - better measurement in a shorter time
How to realize the applet in its own app to realize continuous live broadcast
ETL development of data warehouse (IV)
kubernetes命令入门(namespaces,pods)
June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries
Summary of cases of players' disconnection and reconnection in Huawei online battle service