摘要: Spring Boot 入门 其实, 这个根本不算入门... 今天晚上决定, 这几天来看看SpringBoot, 然后打算去GitHub找找SSM和SpringBoot的项目, 突然发现, SpringBoot相比于Spring舒服很多, 没有那么多的配置了; 起步 创建一个普通的maven项目 开 阅读全文
posted @ 2020-06-30 21:38 无谋 阅读(111) 评论(0) 推荐(0)
摘要: 制定一个规则, 在增删该时, 只要满足则自动触发 加for each row 是为了使用:old 或者:new对象或者一行记录 语句触发器 不包含 for each row --插入一条记录,输入一个新员工入职 create or replace triggern t1 after insert o 阅读全文
posted @ 2020-06-27 22:30 无谋 阅读(77) 评论(0) 推荐(0)
摘要: 提前编译好的一段pl/sql语言,放置在数据库端,可以直接被调用.这一段pl/sql一般都是固定步骤的业务. 语法: create [or rplace] procedure 过程名(Name in type,…) as begin end; --给指定员工涨100工资 create or repl 阅读全文
posted @ 2020-06-27 17:46 无谋 阅读(75) 评论(0) 推荐(0)
摘要: Oracle 视图和索引 一个查询的窗口, 所有的数据来自于原表 视图的作用: 屏蔽掉一些敏感字段 保证总部和分部数据及时同意 使用查询语句创建表 create table emp as select * from scott.emp; 创建视图 [必须有dba权限] create view v_e 阅读全文
posted @ 2020-06-27 16:46 无谋 阅读(196) 评论(0) 推荐(0)
摘要: 是对sql语言的扩展, 使得sql语言具有过程化编程的特性 主要用来编写存储过程和存储函数等 定义变量 声明方法 没有大括号, 用begin/end表示开始和结束 declare --可以定义变量 i number(3,2) := 10;--用:=赋值 s varchar2(10) :='小明'; 阅读全文
posted @ 2020-06-27 16:44 无谋 阅读(114) 评论(0) 推荐(0)
摘要: 通用(Oracle与MySQL通用), 推荐使用, 可重用性强 --给员工起中文名 select e.ename, case e.ename when 'SMITH' then '史密斯' when 'ALLEN' then '爱丽丝' when 'BLAKE' then '布雷克' else '匿 阅读全文
posted @ 2020-06-27 12:33 无谋 阅读(135) 评论(0) 推荐(0)
摘要: 数据库, 实例, 用户, 表空间, 数据文件 连接身份: Normal(普通) Sysdba sysoper(管理员) 创建表空间(管理员身份) create tablespace tablespace_name datafile 'D:/FilePathName.dbf' size 100m au 阅读全文
posted @ 2020-06-27 11:14 无谋 阅读(103) 评论(0) 推荐(0)
摘要: <!-- flowchart 箭头图标 勿删 --> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphae 阅读全文
posted @ 2020-05-19 19:15 无谋 阅读(133) 评论(0) 推荐(0)
摘要: 之前写了入门案例,里面只有页面转跳,并没有参数,但是一般情况下都会带有参数的 参数绑定 首先需要一个页面,页面上有一个链接和表单 如果传参失败记得看看name属性和方法的参数名是否一致 index.jsp <%-- Created by IntelliJ IDEA. User: Gx Date: 2 阅读全文
posted @ 2020-03-31 20:55 无谋 阅读(129) 评论(0) 推荐(0)
摘要: 最近在学springMVC,把web和springMVC放在一起看看 刚刚入门写的不太好 WEB 先看看web的方式吧 JSP页面 <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <tit 阅读全文
posted @ 2020-03-31 20:54 无谋 阅读(177) 评论(0) 推荐(0)