首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
PostgreSQL
PostgreSQL 中如何模拟 MySQL 的 order by FIELD()功能?
fancy2020
·
2020-05-19 07:50:17 +08:00
· 3290 次点击
这是一个创建于 1985 天前的主题,其中的信息可能已经有所发展或是发生改变。
MySQL
postgresql
order
Field
1 条回复
•
2020-05-19 08:08:11 +08:00
1
raquelken
2020-05-19 08:08:11 +08:00
order by array_position(array[5, 4, 2, 3]::integer[], target_table.integer_id)
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
857 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 19:57
·
PVG 03:57
·
LAX 12:57
·
JFK 15:57
♥ Do have faith in what you're doing.
❯