yaml语法 普通的key value, name: yang 对象 student: {name: yang, age: 12} 数组 pets: [cat,dog] 可以注入到配置类中 使用yaml注入对象。在对象类上添加@ConfigurationProperties(prefix = "xx ...
分类:
移动开发 时间:
2020-05-21 10:10:31
阅读次数:
89
表结构示意图: 表结构创建语句: 创建相关表 1、自行创建测试数据 2、查询“生物”课程比“物理”课程成绩高的所有学生的学号; select A.student_id,sw,ty from (select student_id,number as sw from score left join co ...
分类:
数据库 时间:
2020-05-20 18:25:14
阅读次数:
65
首先是isnull函数。这个函数主要是用在sql语句中的where条件语句里,用来看某个字段是为空(null),要注意的是空字符串是不属于null的。 比如:select * from student where isnull(gender) ifnull函数呢?又是什么意思? ifnull主要是用 ...
分类:
数据库 时间:
2020-05-20 10:48:43
阅读次数:
70
ResultMap 关联映射 使用ResultMap来进行关联查询,是利用主键表和外键表的关系来处理的,它相比前面的少写了一条sql语句,效率相对较高; 通过表连接查询将所需要的数据一并查询出来,然后再通过ResultMap将结果集映射到对应的对象中;单个对象==>association,集合==> ...
分类:
其他好文 时间:
2020-05-19 23:13:50
阅读次数:
101
#include <iostream>#include <string.h>using namespace std; struct student{ int age; char name[10]; char sex[5]; student *next; }; //链表的增删查改 增; int mai ...
分类:
其他好文 时间:
2020-05-19 12:33:02
阅读次数:
51
1 class Person(object): 2 def __init__(self,name,gender): 3 self.name = name 4 self.gender = gender 5 6 def __str__(self): 7 return '(Person: %s, %s)' ...
分类:
编程语言 时间:
2020-05-19 11:03:41
阅读次数:
199
查询表student中的所有数据:select * from student; 只查询表student中的id和name:select id,name from student; 把重复的行删除,在select后面及字段的前面加distinct:如 条件 使用where子句对表中的数据筛选,结果为t ...
分类:
数据库 时间:
2020-05-18 16:20:31
阅读次数:
58
create table student( sno varchar2(10) primary key, sname varchar2(20), sage number(2), ssex varchar2(5) ); create table teacher( tno varchar2(10) pri ...
分类:
数据库 时间:
2020-05-18 01:06:38
阅读次数:
290
1 create table student( 2 sno varchar2(10) primary key, 3 sname varchar2(20), 4 sage number(2), 5 ssex varchar2(5) 6 ); 7 create table teacher( 8 tno ...
分类:
数据库 时间:
2020-05-17 21:47:30
阅读次数:
95
一.表名和字段 –1.学生表 Student(s_id,s_name,s_birth,s_sex) --学生编号,学生姓名, 出生年月,学生性别 –2.课程表 Course(c_id,c_name,t_id) – --课程编号, 课程名称, 教师编号 –3.教师表 Teacher(t_id,t_na ...
分类:
其他好文 时间:
2020-05-16 18:37:24
阅读次数:
77