笔记

来源:互联网 发布:淘宝化妆品店铺名字 编辑:程序博客网 时间:2024/04/28 03:07

 

html笔记

html超文本标记语言,是基于http协议,是一种无状态的协议,

网页可以在不同的浏览器中打开。

万维网的一个组织-w3c

f5刷新

是以什么方式排列的

OL是有序标记(1,2,3)

UL是无序的标记(。)

超链接<A>后面必须跟一个,它那个连接能连接到的url

url的请求1.直接输入你想要的url

2.就是连接了,他不是输入了。实在程序中写死的

 

 

 

表单页面的基本结构

form里面的属性action后面的url决定着,你要把内容提交到哪里

form里面的另一个属性method,method是指定向服务器提交的方法。方法有两种

分别是get和post,区别1,长度,get最多是255的区别2.post是保密的get不是

 

 

按钮:submit,提交按钮

 

JavaScript

运行在客户端的一种语言,同类型的还有VbScript,JavaScript,Jscript

var是用来声明变量的。后面变量的类型取决与你给他的赋值

中的一个内置对象document

document.write是输出在页面上

java中要是没有大括号说明离他最近的就是他的循环体

调用是事件响应的调用

alert();用来调试JavaScript的错误的

函数的参数是不需要类型的

操作浏览器对象的一些东西

 

 

javascript层的概念

 

 

oracle.txt

--1.查看员工的姓名和员工部门号

select ename as 员工姓名,deptno as 员工部门编号 from emp

--2.每个员工所在的部门和部门所在的地区

select e.ename as 员工姓名,d.dname as 公司名称,d.loc as 公司地址

from emp e,dept d

where e.deptno=d.deptno

--3.统计各部门工资的平均值;

select avg(sal) as 平均工资 ,d.dname as 公司名称

from emp e,dept d

where e.deptno=d.deptno

group by

d.dname

--4.查询SMITH上级领导的姓名

select ename as 员工名字,mgr as 领导名字

from emp

where ename='SMITH' 

--5.查询工资高于JONES的所有员工的姓名和工资

select ename as 名字,sal as 工资

from emp 

where sal>(select sal from emp where ename='JONES')

--6.按员工的工资划分等级,工资高于2500的为A等,在1500和2500间(包括1500及2500)为B等,其余为C等(提示:增加新列DJ);

select 'A', e.*

from emp e

where sal>2500

union

select 'B',e.*

from emp e

where sal between 1500 and 2500

union

select 'C',e.*

from emp e

where sal<1500

--7.查询和ALLEN不在同一部门的员工姓名和所在部门名称;

select e.ename as 名字,d.dname as 部门名字

from emp e,dept d

where e.ename!='ALLEN'

 

 

 

select e.ename,d.dname

from emp e,dept d

where e.deptno=d.deptno

PL/SQL笔记

 

PL/SQL
declare定义数据类型,声明数据用到变量的。所有变量声明必须放到这里面
beain是执行体,相当于java中的大括号
Exception异常块
end标志着当前块结束
EXCEPTION//捕获所有的异常
when others ehen
end
PL/SQL中的赋值方法两种
属性类型:
type
--%type:
declare
--_name不知道是什么类型,但是想让他保持和ename的类型同步
v_name emp.ename%type;
begin
delect name into v_name from emp where empno=7499;
dbms_output.put_line(v_name);
end;
--%rowtype???
--table???
declare
在PLSQL中boolean语句有3中null,false,true
条件控制
if-then  -代表条件
goto不能把goto声明为变量在java中
--if
delare
v_a number :=1;
begin
<<b>>
if v_a>10 then
dbms_output.put_line('ok');
elseif v_a<10 then
v_a :=v_a+1;
goto b;
end if;
循环3种
一.无条件循环Loop,,,exit或者exit when退出
二.for循环相当于java中的for  each循环
--for   在for循环中a是不需要声明的
begin
for a in 1..10 loop
dbms_output.put_line(a);
end;
--whil循环中a必须有初始值了
begin
http://192.168.0.199:18000/project/