[ Prev ] [ Index ] [ Next ]

命令

Created 星期四 15 四月 2010

\d 数据表 显示数据表
\ds 列出架构模式及该模式下的表
\dn 列出加构模式
\l 列出资料

"\copy"
从数据库到文件
\copy tablename(columns...) to file;
\copy (query) to file;
\copy tablename(columns) from file;

\i file.sql
执行sql脚本