MySQL:a表字段值更新到b表某字段中;判断a表某日期字段大于当前日期

1、 a表字段值更新到b表某字段中
update b set b.name = (select a.name from a where a.id = b.id)
2、判断a表某日期字段大于当前日期
select * from a where a.date > curdate()

猜你喜欢

转载自blog.csdn.net/zcxbd/article/details/100074448
今日推荐