zoukankan      html  css  js  c++  java
  • postgresql查询语句

    //查询表名称
    SELECT tablename FROM pg_tables
    WHERE tablename NOT LIKE 'pg%'
    AND tablename NOT LIKE 'sql_%'
    ORDER BY tablename;

    //查询数据库名称

    SELECT datname FROM pg_database;

    //给表列增加注释

    comment on table user is 'Our session logs';

    //postgresql查询注释信息

    select description from pg_description

    join pg_class on pg_description.objoid = pg_class.oid
    where relname = 'user'
  • 相关阅读:
    HDU 3537
    POJ 1175
    POJ 1021 人品题
    POJ 2068
    POJ 2608
    POJ 2960
    poj 1635
    ustc 1117
    ural 1468
    数字游戏
  • 原文地址:https://www.cnblogs.com/zhurunlai/p/7283444.html
Copyright © 2011-2022 走看看