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

mysql update 批量更新,布布扣,bubuko.com

mysql update 批量更新

上一篇:oracle 触发器


下一篇:SQL Server Management Studio 手动导入Excel文件