【发布时间】:2019-03-22 22:28:22
【问题描述】:
【问题讨论】:
-
首先要做的是谷歌“postgresql 字符串函数”,它通常会找到一个页面来开始寻找合适的函数
标签: sql postgresql sorting select
【问题讨论】:
标签: sql postgresql sorting select
使用重复 https://w3resource.com/PostgreSQL/repeat-function.php
select col1,col2,REPEAT(col1,col2) from table1
【讨论】:
PostgreSQL 有一个整洁的repeat function:
SELECT col1, col2, REPEAT(col1, col2)
FROM table1
【讨论】: