`
jjxliu306
  • 浏览: 153497 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

pg提取序列号

 
阅读更多
select table_catalog , table_schema , table_name , column_name , column_default  , regexp_matches(column_default , '^nextval[\(]([^\)]+)::regclass[\)]$') 

from information_schema.columns where column_default like 'nextval%' 

 mark

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics