--创建自定义存储过程--语法:--if exists(select * from sysobjects where name='')-- drop proc ''--go--create proc[edure] usp_名称-- 相当于方法的():创建参数--as-- 相当于方法{}:方法体--g...
分类:
其他好文 时间:
2015-03-19 23:45:14
阅读次数:
189
练习oracle时create了很多表,drop表后select * from tab;网上找了好些方法,但是好多都适用...SQL>purge recyclebin;回收站已清空。
分类:
其他好文 时间:
2015-03-19 23:33:36
阅读次数:
155
固定集合:capped collection 是性能出色的固定大小的集合,以LRU算法淘汰记录,自助维护集合中的对象的插入顺序,创建时预先制定大小,空间使用完,心对象取代旧的对象,保持最新的数据。可以插入及更新,但更新不能超出collection的大小,否则更新失败。不允许删除,但是可以调用drop...
分类:
移动开发 时间:
2015-03-19 23:31:43
阅读次数:
295
use School if exists (select*from sysobjects where name='Teacher')drop table Teacher gocreate table Teacher(Id int primary key identity(1,1), --参数第一个种...
分类:
数据库 时间:
2015-03-19 21:54:52
阅读次数:
165
11gR2开始,OCR和VOTE都存储在ASM磁盘组,因此替换OCR有两种方法,第一种是add new disk 再drop old disk后ASM磁盘组自动做数据重组,第二种是将OCR迁移至其他磁盘组
第一种:add disk 再 drop disk
SQL> select group_number,name,path from v$asm_disk;
GROUP_NUMBER NAME PATH
--------...
分类:
其他好文 时间:
2015-03-18 21:49:10
阅读次数:
168
alter table Account_Info drop constraint PK_ACCOUNT_INFO cascade drop index;alter table Account_Info ADD constraint PK_ACCOUNT_INFO primary key(RECEIV...
分类:
其他好文 时间:
2015-03-18 17:21:16
阅读次数:
129
if the hive version not support drop table tablename purge.your drop table command will move data to .Trash in hdfs.dfs .Trash;drop table tablename;df...
分类:
其他好文 时间:
2015-03-18 15:25:01
阅读次数:
131
--https://github.com/slimandslam/pig-hive-wordcount/blob/master/wordcount.hqlDROP TABLE myinput;DROP TABLE wordcount;CREATE TABLE myinput (line STRING...
分类:
其他好文 时间:
2015-03-18 15:18:57
阅读次数:
116
删除用户:drop user pnxd cascade;导出数据:exp pnxd/padmin@A file=c:\bb.dmp full=y导入数据:imp pnxd/padmin@PNXD file=c:\bb.dmp ignore=y full=y创建用户:create user pnxd ...
分类:
数据库 时间:
2015-03-18 08:57:58
阅读次数:
157
有个需求:统计上级部门的销售额,制造数据如下:
drop table dept;
create table dept
(
DEPTNO number,
DEPTNAME varchar2(50),
PARENT_DEPTNO number
);
insert into dept values(1,'市场部',-1);
insert into dept values(2...
分类:
数据库 时间:
2015-03-17 20:18:54
阅读次数:
180