• 总结日常内容(一)


    从命令行删除PostgreSQL中的所有表

    不想要删除数据库本身,仅删除所有表及其中的所有数据:

    所有表都在单个模式中,则此方法可行(以下代码假定模式名称为public):

    DROP SCHEMA public CASCADE;
    CREATE SCHEMA public;

    使用的是PostgreSQL 9.3或更高版本,则可能还需要恢复默认授予.
    GRANT ALL ON SCHEMA public TO postgres;
    GRANT ALL ON SCHEMA public TO public;

    sql plus 修改密码

    1. win+r 打开运行窗口 输入 sqlplus / as sysdba 打开sqlplus;
    2. 在窗口中输入alter user scott identified by orcl;然后回车,将scott用户的密码设置为orcl。

    openGauss v3.1.1 使用手册(企业版)

    https://www.bookstack.cn/read/opengauss-3.1.1-zh/f3046c3517359a0c.md

    bison更新链接

    https://ftp.gnu.org/gnu/bison/

    gitee的opengauss

    https://gitee.com/opengauss/openGauss-server#https://gitee.com/link?target=https%3A%2F%2Fopengauss.obs.cn-south-1.myhuaweicloud.com%2Flatest%2Fbinarylibs%2Fgcc7.3%2FopenGauss-third_party_binarylibs_Centos7.6_x86_64.tar.gz

    target_list 中的 list_make1 的含义

    gram.y 中的 target_list 的定义:

    target_list:                                    
                target_el                
                { $$ = list_make1($1); }        
                | target_list ',' target_el                
                { $$ = lappend($1, $3); }        
            ; 
    #define list_make1(x1)              lcons(x1, NIL)
    #define list_make2(x1,x2)           lcons(x1, list_make1(x2))
    #define list_make3(x1,x2,x3)        lcons(x1, list_make2(x2, x3))
    #define list_make4(x1,x2,x3,x4)     lcons(x1, list_make3(x2, x3, x4))
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10

    listmake1($1) 就是,通过 lcons来建立一个空的List, 其head 指向 $1。

  • 相关阅读:
    【python】time库知识整理
    如何求和第K大(小)的子序列
    excel中的引用与查找函数篇1
    【C++】模板进阶
    继承和动态内存分配
    Grafana 系列文章(十四):Helm 安装Loki
    移动电摇小子
    Apple 推出全球开发者资源 —— 人人能编程
    DP读书:《openEuler操作系统》(五)进程与线程
    使用Spring来管理对象关系映射(ORM)
  • 原文地址:https://blog.csdn.net/Re_view/article/details/133983617