《MysqL学习关于MysqL delete的问题小结》要点:
本文介绍了MysqL学习关于MysqL delete的问题小结,希望对您有用。如果有疑问,可以联系我们。
导致delete from table where col not in (select col from table group by xx)
会提示报错
我们要做的是
代码如下:
create table tmp selete col from table group by xx;
delete from table where col not in (select col from tmp);
drop table tmp;
今天,在开发自己的项目中需要把项目原来的数据导入到新的系统中,在这个过程中会产生部分脏数据.
我们需要把这部分脏数据删除到,在删除的过程中我写的delete SQL语句不能执行不知道为什么,可以同样的语句执行MysqL教程
select 是没有问题的MysqL教程
如:
delete from student a where a.ID in (1,2);()
select a.* from student a where a.ID in (1,2);()
这是什么原因了呢?
结果处理:MysqL教程
delete 在写 *** 作一张表的时候 不用别名 *** 作成功!MysqL教程
如:MysqL教程
delete from student where ID in (1,2);()
我使用MysqL版本:5.1.30-community-logMysqL教程
这是在开发中遇到的一个小问题,积累起来.MysqL教程
总结以上是内存溢出为你收集整理的Mysql学习关于mysql delete的问题小结全部内容,希望文章能够帮你解决Mysql学习关于mysql delete的问题小结所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)