显示所有的数据库:show databases 显示一个数据库所有表用:show tables from DatabaseName SELECT table_name FROM information_schema.tables WHERE table_schema='DatabaseName' AND table_type='base table'; 显示一个数据库中的所有视图: show table status from DatabaseName where comment='view';…
一.启动PostgreSQL服务######################################################################?root@root:~# service postgresql start ###启动PostgreSQL服务?root@root:~# service postgresql status ###查看状态?root@root:~# ss -ant ###执行成功后,可以通过ss -ant命令查看端口5432…