Oracle的nvl/nvl2/nullif/coalesce函数介绍
nvl(param_1,param_2)如果参数1非空(null)返回参数1,否则返回参数2。nvl2(param_1,param_2,param_3)如果参数1非空(null)返回参数3,否则返回参数2。nullif(param_1,param_2)如果参数1和参数2相等...oracle12cPDB里建立的用户登录不上去,显示IO错误:Unknownhostspecified
连接失败,错误报告:user=storeurl=jdbc:oracle:thin:@orclpdb错误消息=io错误:unknownhostspecified碰到这个问题的童靴们,正解如下:首先在oracleenterprisemanagerdatabaseexpress12c中查看容...- 0
- 0
- 0
- 0
- 0
oracle中110个函数汇总
1.ascii返回与指定的字符对应的十进制数;sql>selectascii(a)a,ascii(a)a,ascii(0)zero,ascii()spacefromdual;aazerospace------------------------------------659748322.chr给出整数,返回对应...- 0
- 0
- 0
- 0
- 0
WARNING OGG-01519
2019-02-1405:13:09warningogg-01519waitingateofoninputtrailfile/home/u01/app/ogg/dirdat/mb000000002,whichisnotmarkedascomplete;butsucceedingtrailfile/home/u01/app/ogg/dirdat/mb0000...- 0
- 0
- 0
- 0
- 0
Oracle删除表中重复数据的方法
创建表用于测试:删除表中的重复的数据,保存rowid最小的一个数据:deletefromtbl_aawherea.a_namein(selectb.a_namefromtbl_abgroupbyb.a_namehavingcount(b.a_name)>1)androwidnotin(selectmin(...- 0
- 0
- 0
- 0
- 0
oracle数据去重语句介绍
简单的一条语句:deletefrom表名where(id)in(selectidfrom表名groupbyidhavingcount(id)>1)androwidnotin(selectmin(rowid)from表名groupbyidhavingcount(*)>1);- 0
- 0
- 0
- 0
- 0
Oracle中如何获取用户表信息等详情?
1.获取当前用户的用户名selectusernamefromuser_users;2.获取某个用户下的所有表名称selecttable_namefromall_tableswhereowner=用户名;--注意大小写3.获取当前用户下某张表的详细信息selectt....- 0
- 0
- 0
- 0
- 0
oracle如何判断查询结果是否存在
在oracle使用中,我们可能遇到这样的需求,比喻说,通过数据库生成验证码,但是验证码必须要唯一可能的做法就是:筛选出验证码字段中重复的字段,然后通过dbms_random.string(‘x’,4)函数生成新的验证...- 0
- 0
- 0
- 0
- 0
oracle显式游标的使用(代码实例)
显式游标的使用:declarecursoruser_curisselect*fromtg_cdr10;user_rowmy_user%rowtype;beginopenuser_cur;loopfetchuser_curintouser_row;exitwhenuser_cur%notfound;dbms_output.put_line(us...- 0
- 0
- 0
- 0
- 0
Oracle 索引 index
索引是一个模式对象,其中包含每个值的条目,该条目出现在表或集群的索引列中,并提供对行的直接快速访问。创建一个索引:createindex索引名on表名(字段名);删除索引:dropindex索引名建立索引的目的...- 0
- 0
- 0
- 0
- 0
oracle中的某一个用户名修改
1若修改某一个用户密码,修改用户口令格式为:alteruser用户名identifiedby新密码;2以system为例,想把密码修改为123456.可输入alterusersystemidentifiedby123456;3这样就修改成功了- 0
- 0
- 0
- 0
- 0
Oracle学习:表格连接、eclipse、框架
一、表格连接:1,内连接1.1,等值连接:在连接条件中使用等于号(=)运算符比较被连接列的列值,其查询结果中列出被连接表中的所有列,包括其中的重复列。……1.2,不等值连接:在连接条件使用除等于运算符...- 0
- 0
- 0
- 0
- 0
Oracle数据库级联删除、级联更新的实现
oracle级联删除的实现代码:--设置外键约束(可以通过consteraint给约束命名)p_mnumber(10)referencesmain(m_id)ondeletecascade相关解释:foreignkey的作用是定义外键约束regerences的作用是赋予...- 0
- 0
- 0
- 0
- 0
Oracle中常用的命令,随着学习进度总结
原创作品,欢迎转载,转载请在文章显眼位置注明出处:https://www.cnblogs.com/sunshine5683/p/10016569.html开始之前先注意:在linux中切换到sqlplus,进行命令操作时候,退格键有可能不能用,出现^h...- 0
- 0
- 0
- 0
- 0
Oracle数据库根据时间范围查询时间范围内的年,月,日以及一天的24小时(实例)
查询时间范围内对应的年selectto_char(add_months(to_date(2013,yyyy),(rownum-1)*12),yyyy)asyearsfromdualconnectbyrownum<=months_between(to_date(2018,yyyy),to_date(2013,yyyy))/12+1查...- 0
- 0
- 0
- 0
- 0
OraclePGA
pga(programglobalarea)程序全局区pga是用户进程连接到并创建一个对应的会话时,由oracle为服务器进程分配的专门用于当前用户会话的内存区,每个oracle服务器进程都包含有属于自己的pga,它只存储...- 0
- 0
- 0
- 0
- 0
plsql的database下拉为空,如何解决?
如何解决plsql的database下拉为空?为什么plsql的database下拉为空?我在tnsnames.ora中设置了字符串orcl,疑惑了我好久,在网上找了许久解决方案,终于是解决了!如下对我的解决过程做一个记录。错误...- 0
- 0
- 0
- 0
- 0
Oracle数据库新装之后出现的监听程序无法正常启动和运行(Oracle-12514)问题
修改安装目录下的配置文件比如:f:\app\admin-pc\product\11.2.0\dbhome_1\network\admin\修改这个目录下的listener.ora和tnsnames.ora******************************************************...- 0
- 0
- 0
- 0
- 0
Oracle中scope=both和scope=spfile选项的作用讲解
oracle里面有个叫做spfile的东西,就是动态参数文件,里面设置了oracle的各种参数。所谓的动态,就是说你可以在不关闭的情况下,更改数据库参数,记录在spfile里面。更改参数的时候,有4种scope选项。sc...- 0
- 0
- 0
- 0
- 0