上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: Set的主要特性:Set集合中不能存在两个相同的元素 1.Set的常用函数:与Collection的常用函数和名称完全相同。 2.HashSet即为Set的主要实现类 1 public static void HashSetTest() 2 { 3 HashSet set = new HashSet 阅读全文
posted @ 2022-03-25 20:28 jue1e0 阅读(535) 评论(0) 推荐(0)
摘要: 1.创建File类的常用方法: 1 /* 1.创建file类的实例 2 * File(String filePath) 3 * File(String parentPath,String childPath) 4 * File(File parentFile,String childPath) 5 阅读全文
posted @ 2022-03-25 08:17 jue1e0 阅读(31) 评论(0) 推荐(0)
摘要: 1.视图即一个连接表的工具,用于辅助对表的查找和修改,是一个虚表,但通过改变该虚表可以改变与之连接的实表内容 2.视图的有关语句的语法,和表的语法基本相同 1.视图的创建与替换: 1 #1. 创建视图emp_v1,要求查询电话号码以‘011’开头的员工姓名和工资、邮箱 2 create or rep 阅读全文
posted @ 2022-03-24 20:40 jue1e0 阅读(148) 评论(0) 推荐(0)
摘要: 1.比较表的属性结构和数据元组"增添"区别 (1).表的整体创建: 1 create table dept01 ( 2 id INT(7), 3 name varchar(25) 4 ); 使用create table...的语句 (2).表的属性字段增添: 1 alter table employ 阅读全文
posted @ 2022-03-24 10:18 jue1e0 阅读(84) 评论(0) 推荐(0)
摘要: 第一部分:表的约束 常见的约束类型: (1).primary key:主键(用于区分不同元组的唯一标识属性) (2).unique:独特(表示该属性的分量不能在不同元组中重复出现) (3).not null:不为空(表示该属性的分类不能为空值) (4).foreign key ... referen 阅读全文
posted @ 2022-03-24 09:00 jue1e0 阅读(97) 评论(0) 推荐(0)
摘要: 1.泛型类在数据结构中的使用(java中的数据结构都采用了泛型的思路进行构造,所以一般都用泛型来调用数据结构) 1 ArrayList<Integer> list = new ArrayList<Integer>(); 2 list.add(78); 3 list.add(89); 4 list.a 阅读全文
posted @ 2022-03-24 00:06 jue1e0 阅读(42) 评论(0) 推荐(0)
摘要: 相关子查询: 即在查询中除了用到子查询外,还用到了表之间的连接(即多表查询) 以下有几个例子: 1 #18.查询各部门中工资比本部门平均工资高的员工的员工号, 姓名和工资(相关子查询) 2 select employee_id ,last_name ,salary 3 from employees 阅读全文
posted @ 2022-03-23 19:21 jue1e0 阅读(74) 评论(0) 推荐(0)
摘要: 1.exists和not exists的本质是判断存在或不存在一个元组,所以判断是否存在的值都是 select * 2.用到exists或是not exists都用到了跨表查询,所以一定要附上连接条件 示例: #15. 查询部门的部门号,其中不包括job_id是"ST_CLERK"的部门号 #正确写 阅读全文
posted @ 2022-03-23 19:13 jue1e0 阅读(151) 评论(0) 推荐(0)
摘要: 1.对以下例子进行分析: #查询平均工资最低的部门信息和该部门的平均工资(相关子查询) select d.*,(select avg(salary) from employees e2 where d.department_id = e2.department_id ) "avg_sal" from 阅读全文
posted @ 2022-03-23 11:09 jue1e0 阅读(57) 评论(0) 推荐(0)
摘要: 1.常见的异常类 (1).编译时异常: 1 OException:输入输出流异常 2 3 FileNotFoundException:文件找不到的异常 4 5 ClassNotFoundException:类找不到的异常 6 7 DataFormatException:数据格式化异常 8 9 NoS 阅读全文
posted @ 2022-03-22 22:10 jue1e0 阅读(55) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 下一页