![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
文章平均质量分 55
Laugh-toy
这个作者很懒,什么都没留下…
展开
-
oracle数据库配置的一些注意事项
一、listener.ora文件配置# listener.ora Network Configuration File: D:\ORACLE\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora# Generated by Oracle configuration tools.SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (OR原创 2021-11-11 17:01:14 · 1841 阅读 · 0 评论 -
如何将sql查询出来的结果集对表进行更新
如何将sql查询出来的结果集对表进行更新一、需求二、方法(直接写sql,直接在数据库客户端进行操作)一、需求数据库有a,b两张表,需要利用a表中的字段值去更新或填充b表中的字段值,其中a,b表中通常有相同的字段(比如外键)相关联。二、方法(直接写sql,直接在数据库客户端进行操作)内联视图更新:update (select a.objectid,a.roadname,a.buildunit,a.region,b.organname,b.areacode from pipeproject a l原创 2021-10-14 16:19:58 · 11490 阅读 · 1 评论 -
springboot项目整合mybatis、oracle、web、thymeleaf
一、导入依赖、pom.xml文件配置<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.原创 2021-04-16 11:01:33 · 155 阅读 · 0 评论 -
Oracle数据库查找重复的数据与删除重复的数据
Oracle数据库查找重复的数据与删除重复的数据--选择重复的数据select a.rowid,subject,grade_num from table2 a where (a.subject,a.grade_num) in (select b.subject,b.grade_num from table2 b group by b.subject,b.grade_num having count(*)>1);--方式一:删除重复数据,只剩一条,group by 的后面 + 重复字段dele原创 2021-03-31 16:36:14 · 119 阅读 · 0 评论 -
oracle数据库sql语句字符集不匹配错误,nvarchar2
1.问题字符集不匹配select pt.projectid, projectname, son.organname as constructioncompany,case constructionwhen ‘1’ then ‘新建’when ‘2’ then ‘续建’when ‘3’ then ‘前期研究’when ‘4’ then ‘预备’end as construction, ndjsnr, to_char(scheduleddate, ‘yyyy-MM-dd’) as schedu原创 2021-03-09 14:48:03 · 2094 阅读 · 0 评论 -
oracle分页,rownum的使用与理解
1.引入rownum可以理解为是一个虚列、虚列、虚列 ## 假设student学生表中有20条数据2.分析两种情况:select * from student where rownum<10或select * from student where rownum!=10where + (rownum 表达式)rownum=1,表达式结果为true,结果集保存该条数据,比较下一条,此时rownum++,变为2;select * from student where rownum>1原创 2021-03-08 22:58:44 · 633 阅读 · 0 评论