摘要: postgreSQL 常用命令连接数据库, 默认的用户和数据库是postgrespsql -U -d \c dbname切换数据库,相当于mysql的use dbname\l列举数据库,相当于mysql的show databases\dt列举表,相当于show tables\d tblname查看表结构,相当于desc tblname,show columns from tbname一般性\c[onnect] [资料库名称|- 用户名称|- 主机|- 埠号|-] 连线到新的资料库 (目前是 "test")\cd [目录] 改变目前的工作目录\copyright 显示 Pos 阅读全文
posted @ 2014-02-20 15:05 此人极帅 阅读(220) 评论(0) 推荐(0) 编辑