考虑具有列EffectiveDate的表DateDetails。我想写一个更新查询,这样:
if effectiveDate > "first day of the month" then
->set it to "first day of the month"
就像是 :
update DateDetails
set effectiveDate = (start of the month)
where effectiveDate > (start of the month)
有效日期是日期类型。日、月、年也可以是任意的:12-JAN-2013 或 24-DEC-2056
我该怎么写?