教学文章
Technology Exchange
Technology Exchange
热门课程
400电话
免费咨询热线
400-090-9964
在PostgreSQL中,可以用命令行,也可以用图形界面删除不再需要的数据库。
应该遵循以下操作步骤:
通过左键单击数据库(database)。
右键单击,您将看到一个删除/删除选项。
单击删除/删除选项完全删除数据库。
PostgreSQL删除/删除数据库示例(方法一)
在这里,我们将删除数据库“testdb”。
右键单击数据库:testdb,左键单击delete/drop选项。将收到以下弹出框。
点击“是(Yes)”完全删除数据库“testdb”。
现在,可以看到已经删除了数据库:testdb,它不显示在左侧列表中了。
使用SQL删除数据库(方法二)
postgres=# drop database testdb;
DROP DATABASE
postgres=#