通过如下sql语句

SELECT col_description(a.attrelid,a.attnum) as comment,format_type(a.atttypid,a.atttypmod) as type,  

a.attname as name, a.attnotnull as notnull
FROM pg_class as c,pg_attribute as a
where c.relname ='tablename'and a.attrelid = c.oid and a.attnum>0

 


相关文章:

  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2021-08-31
  • 2021-08-09
  • 2022-01-13
相关资源
相似解决方案