丁保国的博客

收集整理工作生活,点点滴滴

  :: :: 博问 :: 闪存 :: :: :: :: 管理 ::
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页

2009年8月31日

摘要: Chapter 16 Procedurecreate or replace procedure proc_helloworldisbegin DBMS_OUTPUT.Put_Line('Hello World');end;/Procedure createdSQL> show serveroutputSQL> set serveroutput onSQL> show server... 阅读全文
posted @ 2009-08-31 21:04 丁保国 阅读(177) 评论(0) 推荐(0) 编辑

2009年8月30日

摘要: Chapter 15 序列号(Sequence)和同义词(Synonym)SQL> desc supplier;Name Type Nullable Default Comments ------- ------------ -------- ------- -------- S_CODE NUMBER(6) Y SNAME VARCHAR2(25) Y CONTACT VARCHAR2(1... 阅读全文
posted @ 2009-08-30 23:22 丁保国 阅读(538) 评论(0) 推荐(0) 编辑

摘要: Chapter 14 View 最基本的表也就是实体是不会发生变化的,变化的应该是视图。create view averageas select d.dname "部门", avg(e.sal) "平均工资", avg(nvl(comm,0)) "平均佣金", count(*) "员工数"from emp e, dept dwhere e.deptno = d.deptnogroup by d.d... 阅读全文
posted @ 2009-08-30 22:17 丁保国 阅读(156) 评论(0) 推荐(0) 编辑

摘要: Chapter 13 索引与约束(Indexes and Constraints)create table empconas select * from emp;select * from empcon;SQL> desc empcon;Name Type Nullable Default Comments -------- ------------ -------- ------- ---... 阅读全文
posted @ 2009-08-30 21:17 丁保国 阅读(258) 评论(0) 推荐(1) 编辑

摘要: Chapter 12 数据的维护数据维护包括了DML (Data Manipulating Language) 数据操作语言和事务控制(Transaction Control).create table emp_dmlasselect * from emp;select *from emp_dml;create table dept_dmlas select * from dept;select ... 阅读全文
posted @ 2009-08-30 18:14 丁保国 阅读(169) 评论(0) 推荐(0) 编辑

2009年8月29日

摘要: Chapter 11 替代变量select empno, ename, salfrom empwhere sal >= 1500select empno, ename, salfrom empwhere sal >= &v_salarySQL> SQL> select empno, ename, sal 2 from emp 3 where sal >= &a... 阅读全文
posted @ 2009-08-29 08:02 丁保国 阅读(168) 评论(0) 推荐(1) 编辑

2009年8月27日

摘要: DDL 阅读全文
posted @ 2009-08-27 21:02 丁保国 阅读(154) 评论(0) 推荐(0) 编辑

摘要: Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 Chapter 9 控制Sql * PLUS 的环境和数据字典简介SQL> show echoecho OFFSQL> select * from dept; DEPTNO DNAME LOC---------- -------------- --------... 阅读全文
posted @ 2009-08-27 19:53 丁保国 阅读(255) 评论(0) 推荐(1) 编辑

摘要: 缺,要补 阅读全文
posted @ 2009-08-27 06:46 丁保国 阅读(175) 评论(0) 推荐(0) 编辑

2009年8月25日

摘要: Chapter 7 多表查询减少冗余,方便管理主键(Primary Key):它是关系数据库表中的一列或几列的组合;能够唯一表示一条记录。实体完整性(Entity Integrity): 主键(Primary Key)不能为空(NULL)。表的设计者负责定义主键,数据库管理系统负责维护实体完整性。订单表(Order)订单号|.......商品号|商品名|商品描述|单价|... 供应商号|供应商名1... 阅读全文
posted @ 2009-08-25 22:08 丁保国 阅读(195) 评论(0) 推荐(1) 编辑

摘要: Chapter 6 : 综合数据和分组函数COUNTAVESUMMAXMIN分组函数必须要在group by 的情况下才可以使用奥select count(*)from emp e;select count(e.mgr)from emp e;//return 不为空(NULL)的员工select avg(e.sal) "Average Salary", sum(e.sal) "Summary", ... 阅读全文
posted @ 2009-08-25 07:05 丁保国 阅读(166) 评论(0) 推荐(0) 编辑

2009年8月24日

摘要: Chapter 5 : NULL 值的处理、逻辑操作和函数嵌套 select e.ename, e.job, e.sal, e.comm from emp e where e.job in ('CLERK','SALESMAN') order by e.job NULL:"unavailable,unassigned,undefined,unknow,immeasurable,inapplica... 阅读全文
posted @ 2009-08-24 22:53 丁保国 阅读(212) 评论(0) 推荐(0) 编辑

摘要: SELECT LOWER('SQL: Structural Query Language')from dual;//dual 是一个虚表(伪表)。UPPER(列名|表达式)SELECT UPPER('sql is used exclusively in rdbmses')from dual;SELECT INITCAP('sql is an ENGLISH LIKE language')from ... 阅读全文
posted @ 2009-08-24 22:47 丁保国 阅读(402) 评论(0) 推荐(0) 编辑

摘要: winver---------检查Windows版本 wmimgmt.msc----打开windows管理体系结构(WMI) wupdmgr--------windows更新程序 wscript--------windows脚本宿主设置 write----------写字板 winmsd---------系统信息 wiaacmgr-------扫描仪和照相机向导 winchat--------XP... 阅读全文
posted @ 2009-08-24 12:45 丁保国 阅读(189) 评论(0) 推荐(0) 编辑

2009年8月23日

摘要: Chapter 3: 常用SQL * PLUS命令当前语句存储在SQL缓冲区中,我们可以操作这条记录。desc emp;SQL> desc emp;Name Type Nullable Default Comments -------- ------------ -------- ------- -------- EMPNO NUMBER(4) ENAME VARCHAR2(10) Y JO... 阅读全文
posted @ 2009-08-23 23:17 丁保国 阅读(324) 评论(0) 推荐(0) 编辑

摘要: Chapter 2: 限制性查询和数据的排询select e.empno, e.ename, e.sal from emp ewhere e.sal > 1500;select e.empno, e.ename, e.sal from emp ewhere e.sal between 1500 and 2900;alter session set NLS_DATE_LANGUAGE = AM... 阅读全文
posted @ 2009-08-23 22:32 丁保国 阅读(194) 评论(4) 推荐(1) 编辑

摘要: Chapter 1: Simple Query Sentenceselect * from emp;select e.empno, e.ename, e.sal from emp e;//查询语句中选择指定的列就是关系数据库中所称的投影(Project).一个完整的SQL命令叫语句(statement),比如 select * from emp;"select * "和"from emp"叫子句,... 阅读全文
posted @ 2009-08-23 21:58 丁保国 阅读(173) 评论(0) 推荐(1) 编辑

摘要: 刚刚安装过,也发现这个问题。 安装oracle10g前, 控制面板-添加硬件-选“是,我已经连接了此设备”点击下一步-在列表中选择添加新的硬件设备-选“安装。。。从手动。。。”-接下来的列表中选择 “Microsoft loopback adapter ” 并将此网络连接设置为固定IP如 192.168.0.1 完事儿了再安装... 阅读全文
posted @ 2009-08-23 20:10 丁保国 阅读(1130) 评论(0) 推荐(0) 编辑

摘要: <1> 创建用户 a doc: sqlplus user/user@oradb(连接远程服务器需要实例名称)b 进入oracle 控制台 SQL>create user xxxx identified by xxxx; SQL> 提示信息 SQL>grant user xxxx to dba; SQL> 提示信息 SQL>commit; SQL> 提... 阅读全文
posted @ 2009-08-23 20:06 丁保国 阅读(202) 评论(0) 推荐(0) 编辑

摘要: plsql 在oracle10g以上需要在tool /preferences/options 做如下设置Oracle HomeI: C:\oracle\product\10.2.0\db_1\BINOCI libraryI: C:\oracle\product\10.2.0\db_1\BIN\oci.dll1. Oracle Net Configuration Assistant2.本地Net服务... 阅读全文
posted @ 2009-08-23 20:01 丁保国 阅读(275) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 16 下一页