笔记
来源:互联网 发布:淘宝化妆品店铺名字 编辑:程序博客网 时间: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笔记