postgresql - 对于 xml - postgresql 中的类似功能
问题描述
'for xml' 命令在 pgadmin 上不起作用。有任何想法吗?我正在尝试从另一个stackoverflow问题中获取以下查询:SQL For xml path on int columns?
select @contactIds = stuff((select ','+cast(id as varchar(8000)) from contacts for xml path('') ), 1, 1, '');
解决方案
推荐阅读
- sql - 检查 Spring 数据 JPA 查询中的 List 参数是否为空
- php - php中如何存储资源类型
- go - 在 aws-sdk-go 中使用正则表达式过滤 AWS 资源
- c# - 带有用户选择的 WinForm;走哪条路?
- android - React Native 更新发布 APK
- solr - Solr Result Ranking 对特定查询的修改
- c - 通过头文件中的 ifdefs 将结构从 const 非直接类型转换为非 const
- node.js - 在 Node.js 中加载 TensorFlow 冻结图 (.pb)
- arrays - 如何检查值是否在存储在数组中的两个值之间
- ios - UITableView 自定义单元格在滚动时复制 UIButton