pgsql查询某表所有字段

查询某表所有字段

查询某表所有字段

select * from information_schema.columns
where table_schema='模式名称' and table_name='表名';

模式
在这里插入图片描述
查询某表字段个数

select count(*) from information_schema.columns
where table_schema='模式名称' and table_name='表名';

猜你喜欢

转载自blog.csdn.net/weixin_42949219/article/details/132160374