虚拟化--038 vsphere ESXI升级方法
2015-08-20 16:59
218 查看
面试的时候经常会有删除数据库重复记录的sql
// 数据库有主键id,查找col相同的记录
delete from table t where t.id not in (select min(tb.id) from table tb where tb.col=t.col)
// 数据库中没有主键id,查找col 相同的记录
delete from table t where t.rowid not in (select min(tb.rowid) from table tb where tb.col=t.col)
// 数据库有主键id,查找col相同的记录
delete from table t where t.id not in (select min(tb.id) from table tb where tb.col=t.col)
// 数据库中没有主键id,查找col 相同的记录
delete from table t where t.rowid not in (select min(tb.rowid) from table tb where tb.col=t.col)
相关文章推荐
- 约瑟夫问题的Python和C++求解方法
- JQuery中,.val()与 .attr("","");的区别,以及placeholder与value冲突
- android 自定义TextView"会发脾气的TextView"
- iOS博客地址,很多资料
- python开发之Tkinter可视化
- MyBatis/Ibatis中#和$的区别
- HDU 1029.Ignatius and the Princess IV【数据弱鸡】【咦,水题!】【8月20】
- mac电脑jdk版本切换
- DOM(二)-07-DOM(示例-创建表格)
- ubuntu下安装numpy,matplotlib
- android 自定义TextView"会发脾气的TextView"
- 《AndroidStudio每日一贴》3.快速切换代码风格、配色方案和键盘
- PHP中正则表达式学习及应用(一)
- MAC 版 sublime text 2 安装插件管理器
- 虚拟化--037 vsphere 更改vsphere client和vsphere web client登陆语言
- iOS在进行网络请求的时候的网络状态的响应的判断
- 视图中order by 的使用
- tomcat7.0.63 (redis session方案)
- CentOS修改MySql数据库目录datadir
- Vim简明教程【CoolShell】