当前位置:网站首页>Leetcode:196. delete duplicate email
Leetcode:196. delete duplicate email
2022-07-22 18:58:00 【A master of East and West】
This question is very wonderful https://leetcode-cn.com/problems/delete-duplicate-emails/
Official explanation :
DELETE p1 FROM Person p1,
Person p2
WHERE
p1.Email = p2.Email AND p1.Id > p2.Id;
Be careful :
1,delete When there are two tables in the statement , The table to delete records is located in delete and from Between , And you need the table alias
2, With p1 Of Email To connect p2 Of Email As an association key , And directly compare Id Size ,p2.Id It has always been the smallest Id,p1 The rows of the table are decreasing , and p2 Table will not .
边栏推荐
猜你喜欢
numpy 求矩阵非零元素的均值
Summary of all usage of join in SQL syntax (simple example)
Flink学习笔记(三)Flink安装部署
1. Lei Dian: transfer MySQL database to Oracle, 2.qt5.12.3 connect Oracle 12C database
bjyx
【链表技巧汇总】141.环形链表(简单)
There is no session in the tensorflow module
递归求简单交错幂级数的部分和 (15分)
1. The solution of line feed qt5- "vs" in constants; 2. Problems and solutions of common compilation of QT and vs of the same code
PCV, PIL, pilot installation
随机推荐
Wechat scans the QR code of the website, but only displays the link address, and cannot jump to the web page
图像质量评价
Leetcode 720. the longest word in the dictionary
Vlfeat, pydot configuration
写作单词积累
Shell $*和[email protected]的区别
Strncpy() copy string (limited by length)
逻辑回归中的损失函数
PTA exercises 8-6 delete characters
连接mysql8.0出现caching-sha2-password问题
Data storage partition -- range partition, hash partition, list partition, and indispensable part of performance tuning
Practice 7-7 matrix operation (20 points)
sql 语法中 join 的所有用法总结(简单例子)
Flink学习笔记(五)DataStream API
Flink学习笔记(四)Flink运行时架构
LeetCode 304. 二维区域和检索 - 矩阵不可变
The detailed analysis of the divide () method in BigDecimal takes you into the world of source code
paper - A Physics-based Noise Formation Model for Extreme Low-light Raw Denoising
国内 Ngrok 实现内网穿透
Go language learning: go language journey - exercise questions and reference answers