上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: package com.swing.layerout;import java.awt.BorderLayout;import java.awt.FlowLayout;import java.awt.GridLayout;import java.awt.event.WindowEvent;import java.awt.event.WindowFocusListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;public class GridTest extends JFram 阅读全文
posted @ 2012-10-20 09:54 邹晟 阅读(1800) 评论(0) 推荐(0) 编辑
摘要: package com.swing.layerout;import java.awt.FlowLayout;import java.awt.event.WindowEvent;import java.awt.event.WindowFocusListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;public class FlowTest extends JFrame{ public FlowTest(){ init(); ... 阅读全文
posted @ 2012-10-20 09:53 邹晟 阅读(888) 评论(0) 推荐(0) 编辑
摘要: package com.swing.layerout;import java.awt.BorderLayout;import java.awt.CardLayout;import java.awt.FlowLayout;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowEvent;import java.awt.event.WindowFocusListener;import javax.swi 阅读全文
posted @ 2012-10-20 09:52 邹晟 阅读(2987) 评论(0) 推荐(0) 编辑
摘要: package com.swing;import java.awt.event.WindowEvent;import java.awt.event.WindowFocusListener;import javax.swing.JFrame;public class TestJFrame extends JFrame{ public TestJFrame(){ init(); } public void init(){ this.setSize(400,300);... 阅读全文
posted @ 2012-10-20 09:46 邹晟 阅读(8181) 评论(0) 推荐(1) 编辑
摘要: SELECT * FROM SCOTT.EMP;--游标cursor:对查询出的结果进行逐行操作的内存指针--隐式游标:在DML,游标自动(打开,操作,关闭)/*SQL%FOUND 如果有行受影响返回trueSQL%NOTFOUND 如果没有行受影响返回trueSQL%ROWCOUNT 返回受影响的行数SQL%ISOPEN 游标是否打开,隐式游标的这个值永远是false*/begin update scott.emp set sal = sal+200 where sal<=800; if SQL%FOUND then dbms_output.put_li... 阅读全文
posted @ 2012-10-20 09:44 邹晟 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 一.oracle相关 SID:orcl 全局数据库名 表空间,用户,权限管理二。函数: oracle三。锁和表分区: 锁保证数据的安全可靠,表级锁和行级锁四。数据对象:序列(相当于自动增长),视图(1.简化SQL2隐藏表和列的信息) 索引:加快查询速度,降低了增删改的速度,因为在同时会维护索引页 事务:放在事务中的语句会当成一个整体,其中一条语句出现了错误,所有语句都会 回滚,所以事务中的语句要么都执行成功,要么都执行失败五. PL-SQL: 对传统SQL的加强,可以将各种语句,组成语句块一并发送到ORACLE执行, DECLARE 定义变量 BEGIN 大量语句组成的块 END ... 阅读全文
posted @ 2012-10-19 12:21 邹晟 阅读(119) 评论(0) 推荐(0) 编辑
摘要: --定义变量的方法,以及两种赋值方法declare emp_sal number(7,2):=800; max_sal number(7,2); emp2_sal CONSTANT number(7,2) :=780; --常量begin select max(sal) into max_sal from scott.emp; dbms_output.put_line(emp_sal); dbms_output.put_line(max_sal);end;--演示%type %rowtype的使用declare emp_sal scott... 阅读全文
posted @ 2012-10-19 12:19 邹晟 阅读(2548) 评论(0) 推荐(0) 编辑
摘要: --范围分区create table b(bid number(4),bname varchar2(10),bsal number(8))partition by range(bsal)(partition p2000 values less than (2000),partition p10000 values less than(10000),partition pmax values less than(MAXVALUE))--插入,自动放入分区insert into b values(1,'zhangsan',1999);--查询指定分区 select * from b 阅读全文
posted @ 2012-10-19 12:15 邹晟 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 索引--1、插入tsm_employee 表100万数据--(1.1)、为雇员编码创建一个序列s_emp_nocreate sequence s_emp_nostart with 1000000increment by 1minvalue 1maxvalue 2000000nocyclecache 10; --(1.2)、在tsm_department 加入一条数据,部门编码为 testinsert into tsm_department(dept_no,dept_name, create_date)values('test','test',sysdate);c 阅读全文
posted @ 2012-10-19 12:14 邹晟 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 同义词:将复杂的表名简化成一个简单的字符串,以后就可以通过简单字符串访问到 复杂的表--私有同义词:自己创建自己使用create synonym demp for scott.emp select * from demp;--公有同义词,可以被所有有权限的人使用create public synonym eemp for scott.emp;--修改同义词create or replace public synonym eemp for scott.dept;--删除同义词drop synonym demp;drop public synonym eemp;//--------... 阅读全文
posted @ 2012-10-19 12:12 邹晟 阅读(265) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页