随笔分类 - oracle
摘要:Examples The following example returns several specified substrings of "ABCDEFG":
阅读全文
摘要:Disable: begin for i in (select constraint_name, table_name from user_constraints where constraint_name in (select fk_col.constraint_name from user_co
阅读全文
摘要:I am wondering if this is a valid query: NO! You'll need to handle those individually
阅读全文
摘要:--简单Case函数 CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女' ELSE '其他' END --Case搜索函数 CASE WHEN sex = '1' THEN '男' WHEN sex = '2' THEN '女' ELSE '其他' END
阅读全文
摘要:CREATE OR REPLACE VIEW [Current Product List] ASSELECT ProductID, ProductName, CategoryFROM ProductsWHERE Discontinued = No;
阅读全文
摘要:DELETE FROM your_table WHERE rowid not in (SELECT MIN(rowid) FROM your_table GROUP BY column1, column2, column3);
阅读全文
摘要:http://czmmiao.iteye.com/blog/1522278 Oracle的exp/imp详解 博客分类: Oracle日常管理 Oracle的exp/imp详解 Oracle日常管理 备份概述 逻辑备份:备份可分为两类,物理备份和逻辑备份 物理备份:该方法实现数据库的完整恢复,但需要
阅读全文
摘要:https://wangbinbin0326.github.io/2017/03/31/oracle%E6%95%B0%E6%8D%AE%E8%BF%81%E7%A7%BB%E4%B9%8BExp%E5%92%8CExpdp%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E
阅读全文
摘要:exp相当于select,不会被其他操作锁定。但是如果exp的时候指定了CONSISTENT = y,而数据库中又存在频繁修改,可能会导致exp的时候出现snapshot too old
阅读全文
摘要:--Size of All Table Space --1. Used Space SELECT TABLESPACE_NAME,TO_CHAR(SUM(NVL(BYTES,0))/1024/1024/1024, '99,999,990.99') AS "USED SPACE(IN GB)" FRO
阅读全文
摘要:Oracle之PL/SQL学习笔记 自己在学习Oracle是做的笔记及实验代码记录,内容挺全的,也挺详细,发篇博文分享给需要的朋友,共有1w多字的学习笔记吧。是以前做的,一直在压箱底,今天拿出来整理了一下,给大家分享,有不足之处还望大家批评指正。 PL/SQL定义:PL/SQL是由Oracle开发,
阅读全文
摘要:http://www.dba-oracle.com/t_alter_table_modify_column_syntax_example.htm For complete tips on Oracle alter table syntax, see the book "Easy Oracle Jum
阅读全文
摘要:Postgres 格式化函数提供一套有效的工具用于把各种数据类型(日期/时间,int,float,numeric)转换成格式化的字符串以及反过来从格式化的字符串转换成原始的数据类型。 表 5-7. 格式化函数 表 5-8. 用于 date/time 转换的模板 所有模板都都允许使用前缀和后缀修改器。
阅读全文
摘要:to_char(column,'FM099999')The FM in the format removes leading and trailing blanks.
阅读全文
摘要:oracle 截取字符(substr),检索字符位置(instr) case when then else end语句使用 收藏 常用函数:substr和instr1.SUBSTR(string,start_position,[length]) 求子字符串,返回字符串解释:string 元字符串 s
阅读全文
摘要:Oracle doesn't have on duplicate key update Use MERGE instead:
阅读全文
摘要:It seems the tablespace is full.
阅读全文
摘要:alter this line in your control file to this
阅读全文
摘要:查询及删除重复记录的SQL语句 1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断select * from peoplewhere peopleId in (select peopleId from people group by peopleId having coun
阅读全文
摘要:http://www.dba-oracle.com/t_sql_loader_commit_frequency.htm - Question: Can I control the commit frequency when doing a large data load with SQL*Loade
阅读全文

浙公网安备 33010602011771号