MySQL 更新同一个表不同字段
SQL
update diag_product_list_ios as a join (select soft_package_id,soft_name from diag_product_list_ios where pdt_code='ThinkDiag' ) as b on a.soft_package_id=b.soft_package_id set a.soft_name=b.soft_name where a.pdt_code='EASYDIAG4' and a.soft_name is null
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: