您的位置:程序门 -> 其他数据库开发 -> mysql/postgresql



postgresql显示表字段信息问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


postgresql显示表字段信息问题
发表于:2007-08-25 21:21:48 楼主
postgresql有没有,像mysql/oracle   desc   mytable   类似的显示表信息的命令?
发表于:2007-08-27 09:40:381楼 得分:0
\d   你的表名字


看手册:

to   see   the   detailed   definition   of   a   particular   table,   use   the   \d   table-name   meta-command:

movies=#   \d   tapes
                                table   "tapes "
    column     ¦                   type                     ¦   modifiers
----------+-----------------------+-----------
  tape_id     ¦   character(8)                     ¦   not   null
  title         ¦   character   varying(80)   ¦   not   null
  duration   ¦   interval                             ¦

发表于:2007-11-23 14:07:022楼 得分:0
显示数据库中所有表:\d
显示序列:\ds
显示某一表内容:\d   [表名]
显示函数:\df


快速检索

最新资讯
热门点击