摘要:
--goto跳转语句--在goto 后,跳转到相应的语句,然后执行该语句和后面所有语句begin dbms_output.put_line('goto开始了'); goto c; --不被执行 dbms_output.put_line('goto'... 阅读全文
posted @ 2015-10-12 22:16
不忘学习
阅读(746)
评论(0)
推荐(0)
摘要:
--异常处理declare sNum number := 0;begin sNum := 5 / sNum; dbms_output.put_line(sNum);exception when others then dbms_output.put_line('is Error!... 阅读全文
posted @ 2015-10-12 22:15
不忘学习
阅读(258)
评论(0)
推荐(0)
摘要:
1、简单SQL语句,HellWorld示例--输出信息begin dbms_output.put_line('Oracle Hello World!');end;2、变量的定义、使用--定义变量declare sName varchar2(20);begin sName := 'jack'; ... 阅读全文
posted @ 2015-10-12 22:15
不忘学习
阅读(392)
评论(0)
推荐(0)
摘要:
alter table userInfo add(msn varchar2(20));1、建表 create table userInfo ( id number(6), name varchar2(20), sex number(1), age... 阅读全文
posted @ 2015-10-12 22:14
不忘学习
阅读(319)
评论(0)
推荐(0)
摘要:
1、插入 insert into dept values(50, 'soft', 'Guangzhou'); insert into dept(deptno, dname) values(60, 'software test'); insert into dept select *... 阅读全文
posted @ 2015-10-12 22:13
不忘学习
阅读(218)
评论(0)
推荐(0)
摘要:
Scott表下有这么几个常用的表,而且还带有数据。分别是emp、dept、salgrade;1、查看表结构用desc desc emp;2、空表dual,最常用的空表,如: select 2 * 4 from dual; select sysdate from dual;3、双引号... 阅读全文
posted @ 2015-10-12 22:13
不忘学习
阅读(758)
评论(0)
推荐(0)
摘要:
1、给用户解锁alter user scott account unlock;2、注销、断开、切换当前用户连接quitconn scott/tiger3、用户权限查询A .查看所有用户:select * from dba_users;select * from all_users;select * ... 阅读全文
posted @ 2015-10-12 22:12
不忘学习
阅读(156)
评论(0)
推荐(0)
摘要:
-- 死锁查询语句SELECT bs.username "Blocking User", bs.username "DB User", ws.username "Waiting User", bs.SID "SID", ws.SID "WSID", bs.s... 阅读全文
posted @ 2015-10-12 22:11
不忘学习
阅读(351)
评论(0)
推荐(0)
摘要:
1、 首先你得安装Oracle数据库服务器端和客户端软件,在安装过程中要注意的是,选择oracle的安装目录,切记不要用中文目录或的带空格的目录。下载地址:http://hi.baidu.com/dashuaiwang/blog/item/42f8e7fab96978d6b58f314b.html/... 阅读全文
posted @ 2015-10-12 22:10
不忘学习
阅读(2312)
评论(0)
推荐(0)
摘要:
高级查询在数据库中用得是最频繁的,也是应用最广泛的。Ø 基本常用查询--selectselect * from student;--all 查询所有select all sex from student;--distinct 过滤重复select distinct sex from student;... 阅读全文
posted @ 2015-10-12 22:08
不忘学习
阅读(255)
评论(0)
推荐(0)

浙公网安备 33010602011771号