时间:2021-07-01 10:21:17 帮助过:4人阅读
A表B表相关联 更新B表中的VisitWeek字段值
CCD_PartnerVisit 此为B表
Dell_FiscalWeek 此为A表
UPDATE CCD_PartnerVisit SET
VisitWeek = ‘FY‘+convert(varchar(50),Dell_FiscalWeek.Fiscal_Year)+‘Q‘+convert(varchar(50),Dell_FiscalWeek.Fiscal_Quarter)+‘W‘+convert(varchar(50),Dell_FiscalWeek.Fiscal_QuarterWeek)
FROM CCD_PartnerVisit,Dell_FiscalWeek
WHERE CCD_PartnerVisit.VisitDate = Dell_FiscalWeek.C_Date
sql 数据库数据 批量判断修改
标签:char arch 图片 src 数据 alt 数据库 uart date