postgresql显示表字段信息问题

yeslebk 2007-08-25 09:21:48
postgresql有没有,像mysql/oracle desc mytable 类似的显示表信息的命令?
...全文
537 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lupanlupan 2009-08-29
  • 打赏
  • 举报
回复
顶一下,支持
toddzst 2007-11-23
  • 打赏
  • 举报
回复
显示数据库中所有表:\d
显示序列:\ds
显示某一表内容:\d [表名]
显示函数:\df
懒得去死 2007-08-27
  • 打赏
  • 举报
回复
\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 |

954

社区成员

发帖
与我相关
我的任务
社区描述
PostgreSQL相关内容讨论
sql数据库数据库架构 技术论坛(原bbs)
社区管理员
  • PostgreSQL社区
  • yang_z_1
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧