修饰符:可以修饰类,方法,变量
final修饰的类:不能被继承,不能有子类
final修饰的方法:不能被子类重写
final修饰的变量:不能被更改,是常量,
常量:
- 字面值常量:123
- 自定义常量:被final所修饰的成员变量,一单被初始化不能被改变
注意:自定义常量必须初始化,可以选择显示初始化,也可以再构造方法结束之前.
more >>
技术易学,刚毅难学
基本操作
| 编号 | 功能 | 语句 |
| :–: | :——: | :————————————————–: |
| 1 | insert | insert into tableName values (att1,att2,att3..) |
| 2 | delete | delete from tableName |
| 3 | update | update tableName set att = value |
| 4 | select | select att1,att2,.. from tableName |
| 5 | distinct | select distinct att1 from tableName |
| 6 | order by | select * from tableName order by att1 asc ,att2 desc |
| | | |
查询进阶
子查询
select子查询
将查询出来的结果作为查询条件再次进行查询
1 | select (select att1 from table1) from table2; |
from子查询
将查询出来的结果作为数据进行二次查询
1 | select * from (select * from table1 where att1 = value1 ); |
where子查询
查询出来的结果作为查询条件再次进行查询
1 | select * from table1 where att1 = (select distinct att1 from table2 where att2 = value2) and att2 in (select att1 from table3) |
关联查询
内连接
1 | select t1.att1 , t2.att1 from table1 t1 inner join table2 t2 where t1.att2 = t2.att2 |
外连接查询
1 |
|
交叉连接
1 | select t1.att1 , t2.att1 from table1 t1 cross join table2 t2 where t1.att2 = t2.att2 |
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true