1、创建数据库 create database testdb; (PS:切记不要少了冒号,testdb是数据库名称)
数据库:PostgreSQL初级命令-操作数据库
2、查看数据库 \l (小写L,大写没用)
数据库:PostgreSQL初级命令-操作数据库
3、删除数据库 drop database testdb;(testdb是数据库名称)

数据库:PostgreSQL初级命令-操作数据库
4、切换数据库 \c testdb
(testdb是数据库名称)
数据库:PostgreSQL初级命令-操作数据库

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-11-27
  • 2021-05-02
  • 2021-09-19
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-25
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案