首页 >  资讯 >  >  正文

每日播报!pg数据库官网_pg数据库

2023-05-09 08:55:42 来源:互联网


(资料图片仅供参考)

1、你好,删除5261命令如下:-bash-3.2$ createdb abc -O playboyCREATE DATABASE-bash-3.2$ dropdb abc //dropdb删除数据库4102DROP DATABASE-bash-3.2$ createdb abc -O playboyCREATE DATABASE-bash-3.2$ psql -U playboy -d playboyWelcome to psql 8.1.23, the PostgreSQL interactive terminal.type: copyright for distribution termsh for help with SQL commands? for help with psql commandsg or terminate with semicolon to execute queryq to quitplayboy=> drop database abc; //登录后的删除数据库,注意,不能删除当前登录的数据库DROP DATABASE删除操作的1653前提是,你是超级用户,或者是该数据库的拥有者才行。

2、表也一样,pgsql有一点很特别,就是库是你的,表不一定是你的。

3、这个有点搞。

本文到此分享完毕,希望对大家有所帮助。

标签: