摘要:
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3076 (unattended-upgr) 解决办法: sudo rm /var/lib/apt/lists/lock sudo rm /var/cac 阅读全文
摘要:
两个表做联合查询,从a, b表中各取一部分字段 将列表记录转为字典: def dictfetchall(cursor): "Return all rows from a cursor as a dict" columns = [col[0] for col in cursor.description 阅读全文
摘要:
sudo -u postgres psql ALTER USER postgres WITH PASSWORD 'postgres'; \q 忘记密码/重置密码: https://www.cnblogs.com/v5captain/p/14105368.html PostgreSQL 创建数据库 c 阅读全文