如何更新ACCESS数据库中日期字段的年部分,就是我想把日期在2009年之前的所有数据的日期的 年份改成2010的?SQL code: update table1 set 日期字段=DateAdd('yyyy',1,日期字段) where year(日期字段)=2009
这个只能更新加多少,我要的是之前的所有数据,比如2007的,2005的也都要更新成2010 SQL code: update table1 set 日期字段=DateSerial(2009,month(日期字段),daq(日期字段)) where 日期字段<#2010-01-01#
学习 go 救救命啊 #3楼 的难道还不符合你的要求? daq没有啊, 不行 update table1 set 日期字段=DateSerial(2009,month(日期字段),day(日期字段)) where 日期字段 <#2010-01-01# 这个更新年份的话,所什么索引重复。。。,一句话不好用啊?