1.查找表a中有而表b中没有的数据
select djbh from zj_splzyjb a
where not exists (select djbh from zj_splzb b where a.djbh=b.djbh)
2.搜索表a中的djbh,xh两个字段不唯一的记录即重复记录
select djbh||'-'||xh as djbhxh,count(djbh)
from zj_fybxbd b group by djbh,xh
1.查找表a中有而表b中没有的数据
select djbh from zj_splzyjb a
where not exists (select djbh from zj_splzb b where a.djbh=b.djbh)
2.搜索表a中的djbh,xh两个字段不唯一的记录即重复记录
select djbh||'-'||xh as djbhxh,count(djbh)
from zj_fybxbd b group by djbh,xh
Oracle一些常用系统SQL语句
oracle常用的sql命令
sql的一些用法
一、基础1、说明:创建数据库CREATE DATABASE database-name2、说明:
UI:User Interface &n
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M