关于 not in

yaotiebing 2003-08-26 09:49:59
select usercode from table1 where usercode not in (select Usercode from table2) 这样的sQL 语句执行起来的效率非常低 有没有好的实现方法
...全文
36 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
hdkkk 2003-08-26
  • 打赏
  • 举报
回复
select usercode from t1 where not exists (select 'X' from t2 where t1.usercode=t2.usercode)
hdkkk 2003-08-26
  • 打赏
  • 举报
回复
select usercode from table1 minus (select Usercode from table2)
hh23_ 2003-08-26
  • 打赏
  • 举报
回复
select t1.usercode from table1 t1,table2 t2 where t1.usercode<>t2.usercode
hdkkk 2003-08-26
  • 打赏
  • 举报
回复
我的错了,请勿略
jiezhi 2003-08-26
  • 打赏
  • 举报
回复
select a.usercode from table1 a,table2 b where
a.usercode<>b.usercode
armu80830 2003-08-26
  • 打赏
  • 举报
回复
select usercode from table1
minus
select Usercode from table2
hdkkk 2003-08-26
  • 打赏
  • 举报
回复
select usercode from table1 where usercode not exists (select Usercode from table2)

select t1.usercode from table1 t1,table2 t2 where t1.usercode<>t2.usercode
enhydraboy 2003-08-26
  • 打赏
  • 举报
回复
select table1.usercode from table1,table2 where
table1.usercode = table2.usercode(+) and table2.username is null
yaotiebing 2003-08-26
  • 打赏
  • 举报
回复
minus 比 not in 的效率高吗??
YOLO系列是基于深度学习的端到端实时目标检测方法。 PyTorch版的YOLOv5轻量而高性能,更加灵活和易用,当前非常流行。 本课程将手把手地教大家使用labelImg标注和使用YOLOv5训练自己的数据集。课程实战分为两个项目:单目标检测(足球目标检测)和多目标检测(足球和梅西同时检测)。  本课程的YOLOv5使用ultralytics/yolov5,在Windows和Ubuntu系统上分别做项目演示。包括:安装YOLOv5、标注自己的数据集、准备自己的数据集(自动划分训练集和验证集)、修改配置文件、使用wandb训练可视化工具、训练自己的数据集、测试训练出的网络模型和性能统计。 除本课程《YOLOv5实战训练自己的数据集(Windows和Ubuntu演示)》外,本人推出了有关YOLOv5目标检测的系列课程。请持续关注该系列的其它视频课程,包括:《YOLOv5(PyTorch)目标检测:原理与源码解析》课程链接:https://edu.csdn.net/course/detail/31428《YOLOv5目标检测实战:Flask Web部署》课程链接:https://edu.csdn.net/course/detail/31087《YOLOv5(PyTorch)目标检测实战:TensorRT加速部署》课程链接:https://edu.csdn.net/course/detail/32303《YOLOv5目标检测实战:Jetson Nano部署》课程链接:https://edu.csdn.net/course/detail/32451《YOLOv5+DeepSORT多目标跟踪与计数精讲》课程链接:https://edu.csdn.net/course/detail/32669《YOLOv5实战口罩佩戴检测》课程链接:https://edu.csdn.net/course/detail/32744《YOLOv5实战中国交通标志识别》课程链接:https://edu.csdn.net/course/detail/35209 《YOLOv5实战垃圾分类目标检测》课程链接:https://edu.csdn.net/course/detail/35284  

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧