![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 370 阅读 · 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 · 485 阅读 · 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 bon a.原创 2012-03-12 15:14:00 · 956 阅读 · 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 · 324 阅读 · 0 评论 -
ORACLE函数使用
--如果WARE_ID 没有数据,则为1SELECT 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 · 351 阅读 · 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 · 363 阅读 · 0 评论 -
ORACLE 导入导出数据库命令
●1.导出数据库表语句。exp dzjc/dzjc@orcl_127.0.0.1 tables=SYSDEPARTMENT file=c:\SYSDEPARTMENT.dmp buffer=40960exp riseapprove/risenet@orcl tables=RISENET_EMPLOYEE file=c:\123.dmp buffer=40960exp taicang/t原创 2012-03-12 15:23:40 · 1013 阅读 · 0 评论 -
ORACLE 删除重复数据
delete FROM mc_test twhere t.rowid where t1.row_id=t.row_id)and t.row_id in(select t.row_id from mc_test tgroup by t.row_idhaving count(*) >= 2);原创 2012-03-12 15:26:27 · 357 阅读 · 0 评论