zhoz blog 重新开张,欢迎继续支持!
May
17
以前一个表中的字段忘记记录了,想修复数据。可以用一个Sql文的Update来实现。
方法有两种:
update adv_dat set adv_type=adv_mst.adv_type, adv_target=adv_mst.adv_target
from adv_mst where adv_media_total_day_dat.adv_id=adv_mst.id;
另外一种就是用 left join来实现
不过,开始测试的时候,好像不大对,就没去研究了。
方法有两种:
update adv_dat set adv_type=adv_mst.adv_type, adv_target=adv_mst.adv_target
from adv_mst where adv_media_total_day_dat.adv_id=adv_mst.id;
另外一种就是用 left join来实现
不过,开始测试的时候,好像不大对,就没去研究了。
mysql date n
sql条件内排除写法:年

