答案 0 :(得分:0)
PostgreSQL具有简洁的repeat
function:
new Promise(function(resolve, reject) {
setTimeout(() => {
reject(new Error("Whoops!"))
}, 1000);
}).catch(alert);
答案 1 :(得分:0)
使用重复 https://w3resource.com/PostgreSQL/repeat-function.php
select col1,col2,REPEAT(col1,col2) from table1