[leetcode]Delete Duplicate Emails
2015-09-11 09:42
507 查看
language:mysql
附
delete from Person where Id not in (select * from (select min(Id) from Person group by Email) t);
附
use test; create table Person(Id int auto_increment primary key,Email varchar(100)); insert into Person(Email) values('john@example.com'),('bob@example.com'),('john@example.com');
相关文章推荐
- 人工意识(智能)的研究方向
- Explain of Interaction Operators in UML?
- MySQL drop空表时处于Waiting for table metadata lock状态,解决办法
- MySQL drop空表时处于Waiting for table metadata lock状态,解决办法
- rails 第一个动作
- Understanding Explain Plan
- Rails 新建项目
- linux /dev/console设备解析 http://blog.csdn.net/wangrunmin/article/details/7577807
- 认证流程【2】-main_loop函数
- 认证流程【1】-main函数
- [?]Factorial Trailing Zeroes
- Leetcode NO.220 Contains Duplicate III
- Leetcode NO.219 Contains Duplicate II
- Contains Duplicate 解答
- Communications link failure,The last packet succes
- zabbix 邮件报警 -- sendmail
- 15_09_10 contains 错误用法
- Git push 报错 "error: failed to push some refs to " 解决
- Failed to complete gradle execution.
- int main( int argc, char ** argv)在VS2008中的配置的一个实例