mysql update 批量更新
UPDATE cntheater SET title = (SELECT title FROM cntheater_copy WHERE cntheater.id = cntheater_copy.id)
将查询结果作为新表在进行子查询
select * from(SELECT
COUNT(*) as
totalcount,
place,
title,
CONCAT("li" "qw") as name,
(select
IFNULL(1/0,‘yes‘)) as istrue
FROM
cntheater
GROUP BY title) as
newTable WHERE totalcount=2
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。