12 2021 档案

摘要:游标 概念 提供了一种对具有多行数据查询结果集中的每一行数据分别进行单独处理的方法 显式游标 不带参数的显式游标 声明一个游标,读取学生的学号。 declare cursor my_cursor is select xh from xs; v_xh xs.xh%type; begin open my 阅读全文
posted @ 2021-12-24 22:16 丁帅帅dss 阅读(183) 评论(0) 推荐(0)
摘要:pl/sql 属性类型 %TYPE - 引用变量和数据库列的数据类型 %ROWTYPE - 提供表示表中一行的记录类型 显示输出scott.emp表中的部分数据 declare emp_number constant number(4):=7876; emp_name varchar2(10); e 阅读全文
posted @ 2021-12-23 20:25 丁帅帅dss 阅读(78) 评论(0) 推荐(0)
摘要:pl/sql 基本结构 declare example_text varchar2(100); begin example_text:='本例为plsql示例程序块!!!'; dbms_output.put_line(example_text); exception when others then 阅读全文
posted @ 2021-12-22 23:58 丁帅帅dss 阅读(61) 评论(0) 推荐(0)
摘要:Merge语句 概念&用处 用来合并update和insert语句 通过merge语句,根据一张表(原数据表,source table)对另外一张(目标表,target table)表进行查询,连接条件匹配上的进行update,无法匹配的执行INSERT。 登录 sqlplus / as sysdb 阅读全文
posted @ 2021-12-21 01:17 丁帅帅dss 阅读(145) 评论(0) 推荐(0)
摘要:Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between bea 阅读全文
posted @ 2021-12-14 19:16 丁帅帅dss 阅读(383) 评论(0) 推荐(0)
摘要:1、实现两或多个进程之间互斥访问临界资源(先写出PV操作的伪算法,然后进行算法实现) PV操作 semaphore mutex=1; //临界区互斥信号量 while(1){ sleep(1); P(mutex); printf("father in\n"); sleep(1); printf("f 阅读全文
posted @ 2021-12-11 23:06 丁帅帅dss 阅读(221) 评论(0) 推荐(0)
摘要:目录结构 LoginInterceptor package cn.edu.springmvc.login; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servle 阅读全文
posted @ 2021-12-10 11:03 丁帅帅dss 阅读(47) 评论(0) 推荐(0)
摘要:安装命令 sudo apt install mariadb-server mariadb-client 启动MariaDB systemctl start mariadb 设置开机启动 systemctl enable mariadb MariaDB的相关简单配置(root用户下) mysql_se 阅读全文
posted @ 2021-12-06 22:36 丁帅帅dss 阅读(225) 评论(0) 推荐(0)
摘要:配置java java8 配置环境变量 sudo vim /etc/profile JAVA_HOME=/home/ding/environment/jdk1.8.0_311 CLASSPATH=.:$JAVA_HOME/bin.tools.jar PATH=$JAVA_HOME/bin:$PATH 阅读全文
posted @ 2021-12-05 19:53 丁帅帅dss 阅读(427) 评论(0) 推荐(0)
摘要:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "没有那个文件或目录") 找到 /etc/mysql/mariadb.conf.d/看看client中的socket=啥 我的是sock 阅读全文
posted @ 2021-12-04 23:24 丁帅帅dss 阅读(196) 评论(0) 推荐(0)
摘要:目录结构 代码 java package cn.edu.sdau.aop; public interface ArithmeticCalculator { public int add(int i, int j); public int sub(int i, int j); public int m 阅读全文
posted @ 2021-12-03 23:19 丁帅帅dss 阅读(81) 评论(0) 推荐(0)