- update services a,(select concat(services_time,'分钟') as
services_time,services_id from services) b set a.services_time =
b.services_time where a.services_id=b.services_id
说明:
1、update 时,更新的表不能在set和where中用于子查询;
2、update 时,可以对多个表进行更新(sqlserver不行);
如:update ta a,tb b set a.Bid=b.id ,b.Aid=a.id;
3、update 后面可以做任意的查询,这个作用等同于from;