发布网友 发布时间:2022-05-02 09:12
共2个回答
懂视网 时间:2022-05-02 13:33
UPDATE `WarningSendMail` AS alias_1 INNER JOIN (SELECT * FROM `WarningSendMail` WHERE flag=1 AND topic_id LIKE "%2267%") AS alias_2 SET alias_1.topic_id = REPLACE(alias_1.topic_id,‘|2267‘,‘‘) WHERE alias_1.id = alias_2.id update WarningSendMail set topic_id= REPLACE(topic_id,‘|2267‘,‘‘) WHERE id IN ( SELECT id FROM WarningSendMail WHERE flag=1 AND topic_id LIKE "%2267%" );
Mysql下SELECT的结果集作为UPDATE的WHERE条件时的SQL语法
标签:select set sel mail warnings and end highlight 条件
热心网友 时间:2022-05-02 10:41
sql server中,我们可是使用以下update语句对表进行更新: