随笔分类 - Postgres
摘要:###事务命令 ```bash postgres=# postgres=# \h begin Command: BEGIN Description: start a transaction block Syntax: BEGIN [ WORK | TRANSACTION ] [ transactio
阅读全文
摘要:目录inner joinleft/right outer joinfull outer joincross join (或不指定 join 关键字)on 条件用于过滤ROW_NUMBERLAG inner join inner join 可以简写为 join 产生两张表满足 on 条件的记录的交集
阅读全文
摘要:###安装 sudo apt-get install postgresql 安装完成后,默认会: 创建名为 postgres 的 Linux 用户 创建名为 postgres、不带密码的默认数据库账号作为数据库管理员 创建名为 postgres 的数据库 安装完成后的一些默认信息如下: config
阅读全文