ORACLE
ding_tengfei
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ORACLE 常用语句
create user bond identified by bond; grant connect ,resource to bond; create tablespace create table clob_content( id integer primary key, clob_column clob not null ); crea原创 2012-03-12 15:25:13 · 426 阅读 · 0 评论 -
ORACLE 表是否被锁和解锁方法
SELECT S.SID SESSION_ID, S.USERNAME, DECODE(LMODE, 0, 'None', 1, 'Null', 2, 'Row-S (SS)',原创 2012-03-12 15:27:45 · 555 阅读 · 0 评论 -
查询表主键被哪个表引用
//查询表的主键约束名 select * from user_constraints e where e.table_name=’’—-处输入表名(区分大小写) //查询所有引用到该主键的记录 select b.table_name,b.column_name from user_constraints a inner join user_cons_columns b on a.原创 2012-03-12 15:14:00 · 1030 阅读 · 0 评论 -
ORALCE 乘法口诀
--乘法口诀-- select a.rn, substr(max(sys_connect_by_path( case when a.rn*b.rn>=10 then substr(translate(b.rn||'*'||a.rn||'='||a.rn*b.rn,'1234567890*=','一二三四五六七八九十'),1,原创 2012-03-12 15:29:02 · 378 阅读 · 0 评论 -
ORACLE函数使用
--如果WARE_ID 没有数据,则为1 SELECT nvl(a.WARE_ID,1) FROM DTF_TEST a; --移动表到哪个分区 tablename 表名 new_name 分区名-- alter table tablename move TABLESPACE new_name Storage(initial 50M next 50M pctincreas原创 2012-03-12 15:19:44 · 398 阅读 · 0 评论 -
ORACLE表分区
--按表中数据量分区 less than 小于 最大值如果3,这个分区只能存入两条数据-- --30000000-- --60000000-- create table dtf_test ( dtf_id number primary key, item_id number(8) not null, item_description varchar2(300原创 2012-03-12 15:22:30 · 436 阅读 · 0 评论 -
ORACLE 导入导出数据库命令
●1.导出数据库表语句。 exp dzjc/dzjc@orcl_127.0.0.1 tables=SYSDEPARTMENT file=c:\SYSDEPARTMENT.dmp buffer=40960 exp riseapprove/risenet@orcl tables=RISENET_EMPLOYEE file=c:\123.dmp buffer=40960 exp taicang/t原创 2012-03-12 15:23:40 · 1084 阅读 · 0 评论 -
ORACLE 删除重复数据
delete FROM mc_test t where t.rowid where t1.row_id=t.row_id) and t.row_id in( select t.row_id from mc_test t group by t.row_id having count(*) >= 2);原创 2012-03-12 15:26:27 · 401 阅读 · 0 评论
分享