数据库:PostgreSQL初级命令-操作数据库

1、创建数据库 create database testdb; (PS:切记不要少了冒号,testdb是数据库名称) 2、查看数据库 \l (小写L,大写没用) 3、删除数据库 drop database testdb;(testdb是数据库名称) 4、切换数据库 \c testdb (testdb是数据库名称)
相关文章
相关标签/搜索