typedef pair<string,Student>pair_t; int main() { map<string,Student> mapstu; mapstu.insert(pair_t("2",Student("delaiwen",23))); mapstu.insert(pair_t(" ...
分类:
编程语言 时间:
2020-04-28 13:24:51
阅读次数:
57
create table Student(Sno varchar2(10),Sname varchar2(10),Sage date,Ssex varchar2(10)); insert into Student values('01' , '赵雷' , to_date('1990-01-01',' ...
分类:
数据库 时间:
2020-04-27 22:20:53
阅读次数:
69
public function constructorQuery() { # 1,新增 DB::table('student')->insert([ ['name' => '王者之锤', 'age' => 18], ['name' => '地狱之眼', 'age' => 30] ]); # .... ...
分类:
其他好文 时间:
2020-04-27 19:14:50
阅读次数:
49
//queue:先进先出,pop头部删除//stack:先进后出,pop尾部删除int main() { queue<Student> stuque; stuque.push(Student("zhangsan",22)); stuque.push(Student("lisi",22)); stuq ...
分类:
编程语言 时间:
2020-04-27 15:05:54
阅读次数:
66
Class07 查询数据 查询部分列 如何查询表中的部分列 查询数据:关键字 SELECT SELECT 字段列表 FROM 表名; 【查询出来的结果集无 互异性 】 例子: SELECT stu_id FROM Student; 查询多个列: SELECT stu_id,stu_name,gend ...
分类:
其他好文 时间:
2020-04-27 09:45:43
阅读次数:
81
第八课 过滤数据 使用Where子句 如何使用条件限制返回的结果集 过滤数据:关键字:WHERE SELECT 字段列表 FROM 表名 WHERE 过滤条件; 过滤条件一般由要过滤的字段、操作符、限定值三部分组成; 例如: SELECT stu_id,stu_name FROM student W ...
分类:
其他好文 时间:
2020-04-27 09:31:42
阅读次数:
54
一.注入方式分类注入分为设值注入和和构造注入设值注入指调用setter的方法传入被调用者的实例构造注入指的是构造调用者实例的时候,完成被调用者地实例化说白了,第一个是用setter方法传的值,第二个是使用了有参构造方法二.设值注入的实现本文中,使用学生类Student和学校类School作为示范StudentpublicclassStudent{privateStringname;privatei
分类:
编程语言 时间:
2020-04-27 00:08:14
阅读次数:
139
MyBatis编程式开发 MyBatis编程式开发步骤 1. MyBatis和MySQL Jar包依赖 2. 全局配置文件mybatis config.xml 3. 映射器Mapper.xml 4. Mapper接口 编程式开发伪代码 MyBatis编程式开发核心对象 1. SqlSessionFa ...
分类:
其他好文 时间:
2020-04-26 19:05:28
阅读次数:
70
#MongoDB使用: 条件操作,排序,索引,分页查询,聚合函数##mongodb条件查询 > use study switched to db study > db.student.insert({"name":"张三","age":18,"score":100,"sex":1}) WriteRe ...
分类:
数据库 时间:
2020-04-26 11:22:42
阅读次数:
71
1、万能map 如果我们的实体类或者数据库中的表、字段或参数过多可以使用它 (1)普通的方式添加一个学生的信息: <insert id="insertStudent" parameterType="pers.zhb.pojo.Student"> insert into student (studen ...
分类:
其他好文 时间:
2020-04-25 23:33:09
阅读次数:
78