mysql:show databases
pgsql:\l 或者\l+(顯示的信息要多一些)
mysql:use xx
pgsql:\c xx
mysql:show tables
pgsql:\dt
目前共有3篇帖子。
![]() |
mysql:show databases
pgsql:\l 或者\l+(顯示的信息要多一些) mysql:use xx pgsql:\c xx mysql:show tables pgsql:\dt |
![]() |
|
![]() |
3 常用命令
為了便於記憶,這裡把對應的mysql命令也列出來了。
(1)列出所有的資料庫 mysql: show databases psql: \l或\list (2)切換資料庫 mysql: use dbname psql: \c dbname (3)列出當前資料庫下的數據表 mysql: show tables psql: \d (4)列出指定表的所有欄位 mysql: show columns from table name psql: \d tablename (5)查看指定表的基本情況 mysql: describe tablename psql: \d+ tablename (6)退出登錄 mysql: quit 或者\q psql:\q http://blog.csdn.net/smstong/article/details/17138355 |