List all sequences in a Postgres db 8.1 with SQL

后端 未结 19 1779
旧时难觅i
旧时难觅i 2020-12-12 11:30

I\'m converting a db from postgres to mysql.

Since i cannot find a tool that does the trick itself, i\'m going to convert all postgres sequences to autoincrement id

19条回答
  •  忘掉有多难
    2020-12-12 12:02

    I know the question was about postgresql version 8 but I wrote this simple way here for people who want to get sequences in version 10 and upper

    you can use the bellow query

    select * from pg_sequences
    

    view-pg-sequences

提交回复
热议问题