05 2019 档案

摘要: 阅读全文
posted @ 2019-05-29 10:12 赵钱富贵 阅读(94) 评论(0) 推荐(0) 编辑
摘要:数据结构可以表示为一个四元组(D,L,S,O) data relative logic operation data:所要组织和操作的数据 logic: 线性关系、树形关系、图形关系、集合关系 storage: 顺序存储、链式存储 operation: 查找、添加、删除、遍历、排序... 阅读全文
posted @ 2019-05-21 15:18 赵钱富贵 阅读(124) 评论(0) 推荐(0) 编辑
摘要:c int arr[10]; int arr[ ] = {1,2,4}; int arr[10] = {1,2}; c++ int* arr= new int[100]; java int[ ] arr=new int[6]; int[ ] arr={1,2,3,4}; int[ ] arr= ne 阅读全文
posted @ 2019-05-19 07:31 赵钱富贵 阅读(204) 评论(0) 推荐(0) 编辑
摘要:/* 指定表中数据发生变化时触发器自动生效 3种常规触发器:DML触发器 DDL触发器 登陆触发器 */ --1.创建DML触发器 --eg: create trigger T_DML_employee on employee --on table/view after insert --for/af... 阅读全文
posted @ 2019-05-17 21:08 赵钱富贵 阅读(128) 评论(0) 推荐(0) 编辑
摘要:存储过程是预编译sql语句的集合,存储在一个名称下作为一个单元来处理 表employee 属性id,name 1.创建 create procedure proc_name --存储过程 @name char(20) as --形参 select * from employee where name 阅读全文
posted @ 2019-05-17 19:54 赵钱富贵 阅读(180) 评论(0) 推荐(0) 编辑
摘要:1. select ...from... [into...] //distinct去重 ; top n 项数 where... // group by... //分组 having... //指定组或聚合的搜索条件 order by... //排序 compute... //附加函数 union [ 阅读全文
posted @ 2019-05-17 10:40 赵钱富贵 阅读(209) 评论(0) 推荐(0) 编辑
摘要:第一种 格式 : 简单Case函数 : 格式说明 case 列名 when 条件值1 then 选择项1 when 条件值2 then 选项2....... else 默认值 end eg: select case job_level when '1' then '1111' when '2' th 阅读全文
posted @ 2019-05-16 08:02 赵钱富贵 阅读(369) 评论(0) 推荐(0) 编辑
摘要:1.对数据表: create table alter table add|drop drop table 2.对表中数据: insert into values update set delete 3.对约束(constraint) 例: (1)not null: alter table table 阅读全文
posted @ 2019-05-15 21:27 赵钱富贵 阅读(108) 评论(0) 推荐(0) 编辑
摘要:MySQL: 开启服务:cmd中进入mysql的bin目录,mysqld.exe -install net start mysql 进入mysql:mysql -h localhost -u root -p 显示数据库:show databases; 显示数据库中的表:show tables; 显示 阅读全文
posted @ 2019-05-15 19:41 赵钱富贵 阅读(454) 评论(0) 推荐(0) 编辑