强迫症又犯了

select * from show_center.biz_show where show_Name like '%黑小鸭%' order by update_time desc limit 10; 
select * from show_center.std_show where show_Name like '%黑小鸭%' order by update_time desc limit 10; 


select show_name,count(show_name) from show_center.std_show where show_Name like '%黑小鸭%' order by update_time desc limit 10; 



select show_name from show_center.std_show 
group by show_name 
having count(show_name) >1

select * from show_center.biz_show  where show_name in (select show_name from show_center.std_show 
group by show_name 
having count(show_name) >1)
and show_name like '%黑小鸭%'

update show_center.std_show 
set is_deleted=0
where show_name in (select show_name from show_center.std_show 
group by show_name 
having count(show_name) >1)
and show_name like '%黑小鸭%'


删除演出中心的数据

删除运用推荐的数据

删除用户下单的数据和配票单的数据

select 

 

 

 

 

posted @ 2020-07-10 11:33  巴黎爱工作  阅读(173)  评论(0编辑  收藏  举报