摘要:
python manage.py help django-admin startaproject project #创建项目python manage.py startapp app #创建应用python manage.py shell #命令行打开python shellpython manag 阅读全文
摘要:
gcc编译器驱动程序,读取x.c文件,翻译成可执行目标文件x 1.预处理阶段 预处理器(cpp)将x.c(源程序,文本文件)中的#等直接插入程序文本中,成为另一个c程序x.i(文本文件) 2.编译阶段 编译器(ccl)c程序x.i翻译成汇编程序s.s(文本文件) 3.汇编阶段 汇编器(as)将x.s 阅读全文
摘要:
1.分治策略在于将一个问题分成若干个小问题,问题本身不变只是规模更小 阅读全文
摘要:
数据结构可以表示为一个四元组(D,L,S,O) data relative logic operation data:所要组织和操作的数据 logic: 线性关系、树形关系、图形关系、集合关系 storage: 顺序存储、链式存储 operation: 查找、添加、删除、遍历、排序... 阅读全文
摘要:
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 阅读全文
摘要:
/* 指定表中数据发生变化时触发器自动生效 3种常规触发器:DML触发器 DDL触发器 登陆触发器 */ --1.创建DML触发器 --eg: create trigger T_DML_employee on employee --on table/view after insert --for/af... 阅读全文
摘要:
存储过程是预编译sql语句的集合,存储在一个名称下作为一个单元来处理 表employee 属性id,name 1.创建 create procedure proc_name --存储过程 @name char(20) as --形参 select * from employee where name 阅读全文
摘要:
1. select ...from... [into...] //distinct去重 ; top n 项数 where... // group by... //分组 having... //指定组或聚合的搜索条件 order by... //排序 compute... //附加函数 union [ 阅读全文
摘要:
第一种 格式 : 简单Case函数 : 格式说明 case 列名 when 条件值1 then 选择项1 when 条件值2 then 选项2....... else 默认值 end eg: select case job_level when '1' then '1111' when '2' th 阅读全文