How to retrieve randomized data rows from a postgreSQL table?

前端 未结 2 505
春和景丽
春和景丽 2020-12-21 21:03

I have a table on a PostgreSQL server database with almost 3 million rows and I need to save all rows to a CSV file. The problem here is that the rows must

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-21 21:07

    See this question Selecting random rows

    See this wonderful link Depesz MY THOUGHTS ON GETTING RANDOM ROW

提交回复
热议问题