![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
Attention守恒
一切与恒有关
展开
-
MySql基础知识回顾
- 字段和多行函数不可以同时使用 SELECT num , AVG(sal) from emp -- x 多对1 SELECT num , AVG(sal) from emp GROUP BY deptno;原创 2023-03-14 21:01:22 · 151 阅读 · 0 评论 -
Linux Ubuntu 终端名称的变化 @ 前后的意义
@前为用户名@后为主机名初始root变为psql用户psql用户转到psql命令行psql切换数据库psql命令行退出到psql用户再到root切换主机名再进入特定的conda环境原创 2022-03-04 09:22:24 · 720 阅读 · 0 评论 -
每次连接服务器postgre数据库都要执行的步骤
在终端启动服务器root@6f65f3f5d148 ~# pg_ctlcluster 13 main start查看数据库状态root@6f65f3f5d148 ~# service postgresql status切换到数据库用户root@6f65f3f5d148 ~# sudo su postgres打开数据库命令行 postgres@6f65f3f5d148:/root$ psql连接模式postgres=# \c mimic;mimic=# set .原创 2022-02-25 09:52:55 · 694 阅读 · 0 评论