Access中year、month、day、dateserial函式使用

來源:酷知科普網 2.87W

伴隨著大資料時代到來,資料將會越來越多,越來越複雜,我們都知道資料庫是為資料而生的,那麼Access作為最簡單的資料庫,Excel中的一些函式是否在上面也可以使用呢?基本上都是可以用的,請看下面例子

操作方法

(01)引用表示式生成器寫出函式。Year([時間])、 Month([時間])、Day([時間])、 DateSerial([年]-1,[月]+3,[日]+10),(dateserial函式中的三個物件,分別表示去年,下一季度,10天之後)如圖

Access中year、month、day、dateserial函式使用

(02)按時間排序顯示。選中排序欄位(時間)→排序(降序)

Access中year、month、day、dateserial函式使用 第2張

(03)執行和結果檢視

Access中year、month、day、dateserial函式使用 第3張
Access中year、month、day、dateserial函式使用 第4張

特別提示

欄位需要用“[]'括起來,而且用英文狀態下的

dataserial和year、month、day函式本例不可以巢狀使用

熱門標籤