美文网首页
pgsql查询表信息、列名

pgsql查询表信息、列名

作者: witty_drip | 来源:发表于2019-11-26 16:03 被阅读0次

得到所有表信息

select * from information_schema.columns 
where table_schema='basisdata' and table_name<>'pg_stat_statements';

得到所有表的列名

select column_name from information_schema.columns 
where table_schema='basisdata' and table_name<>'pg_stat_statements';

得到表"day_app_derivate_cnt"的列名

select column_name from information_schema.columns 
where table_schema='basisdata' and table_name='day_app_derivate_cnt';

相关文章

  • pgsql查询表信息、列名

    得到所有表信息 得到所有表的列名 得到表"day_app_derivate_cnt"的列名

  • MySQL基础知识三

    基本语句: select * from表名; 查询表中所有信息 select列名from表名; 查询特定的列 ...

  • 查询表结构的sql语句

    查询描述表: 查看生成表的DDL: 查询表中列的详细信息: 查询列名和注释: 查询表的名称和注释 复制表结构: 修...

  • 2020-01-07 基础查询

    查询列 select <列名1,列名2> from <表名>; 查询所有列 select * from <表名>;...

  • mysql查询

    1.查询所有语句 select * from 表名; 2.查询单个列名 select 列名 from 表名; 3....

  • 查询数据(**)

    1.查询所有列 select * from 表名; 2.查询指定列 select 列名1,列名2 from 表名;...

  • 数据查询

    1、基本查询从表中查询某些列的值,这是最基本的查询语句。 SELECT 列名1,列名2 FROM 表名 2、Whe...

  • 关联查询(多表查询)

    1.交叉连接查询(产生笛卡尔积现象): select 列名1,列名2 from 表1,表2; 多表查询的步骤:1)...

  • 2018-06-23 (数据库)

    /*表的增删改查增创建删除删除整张表改改变表名改变列名改变列类型查查询表结构查询表信息表数据的增删改查增插入指定列...

  • sqllite语句

    查询数据库中的所有表名: 查询表中的所有列名:

网友评论

      本文标题:pgsql查询表信息、列名

      本文链接:https://www.haomeiwen.com/subject/nrzewctx.html