我是通过判断A1如果等于当月倒数第二天,则从这一天到后边的周字段都+1,但每次执行下来都是+2. if(A1==dateinmonth(A1,-1)-1,SQL("DB200_GJL","update S_Date set Weeks = Weeks+1 where Dates >= '"+A1+"' and Dates <='2018-12-29'",1),"") |
最佳回答 |
||||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|