摘要: Ding's Blog (jeffding99.github.io) 阅读全文
posted @ 2021-06-29 23:13 丁帅帅dss 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 传统双控开关如何改装为单控智能开关 单火版单开单控开关 现在网上大都是这样的单火版智能开关L接火线L1接灯具线,而家里有些开关是双控的,线盒里有三根线。 简单记录下我的解决方法和遇到的一些问题。 第一种双控 这是最常见的双控布线了,如果你家的开关是这样的,不是带插座的那种开关。 那只需要把任意一个开 阅读全文
posted @ 2022-02-18 22:06 丁帅帅dss 阅读(5513) 评论(0) 推荐(0) 编辑
摘要: 1. 日志文件 show user desc dba_data_files select file_name, tablespace_name, bytes from dba_data_files; select file#, name, checkpoint_change# from v$data 阅读全文
posted @ 2022-01-08 13:41 丁帅帅dss 阅读(97) 评论(0) 推荐(0) 编辑
摘要: -- 增加一张表xs_1,用来存放从xs表中删除的记录 create table xs_1 as select * from xs; truncate table xs_1; create or replace trigger t1 before delete on xs for each now 阅读全文
posted @ 2022-01-08 13:37 丁帅帅dss 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 游标 概念 提供了一种对具有多行数据查询结果集中的每一行数据分别进行单独处理的方法 显式游标 不带参数的显式游标 声明一个游标,读取学生的学号。 declare cursor my_cursor is select xh from xs; v_xh xs.xh%type; begin open my 阅读全文
posted @ 2021-12-24 22:16 丁帅帅dss 阅读(143) 评论(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 阅读(66) 评论(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 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Merge语句 概念&用处 用来合并update和insert语句 通过merge语句,根据一张表(原数据表,source table)对另外一张(目标表,target table)表进行查询,连接条件匹配上的进行update,无法匹配的执行INSERT。 登录 sqlplus / as sysdb 阅读全文
posted @ 2021-12-21 01:17 丁帅帅dss 阅读(133) 评论(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 阅读(358) 评论(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 阅读(192) 评论(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 阅读(39) 评论(0) 推荐(0) 编辑