谁都会犯错,所以铅笔的另一头才会有橡皮。重要的是别在同样的地方犯两次错,否则橡皮的存在也便没有了多大意义。
MYSQL-更新两个表中的数据
update
表u,
表c
set
c.type='main',u.user_type='main'
where
u.user_id=c.id and c.type is NULL
替换字段中的文字
update tableA set icon=REPLACE(icon,'https://f284.com/','https://images.net/'), vice_icon=REPLACE(vice_icon,'https://fs.com/','https://images.capitalcloud.net/') ;