Hnub Oracle puas suav nrog lub sijhawm?
Hnub Oracle puas suav nrog lub sijhawm?

Video: Hnub Oracle puas suav nrog lub sijhawm?

Video: Hnub Oracle puas suav nrog lub sijhawm?
Video: Kawm txog ntawm xub thawj thiab tom qab paj quaj yog siv li cas? || Qhia looj phaj EP4 2024, Hlis ntuj nqeg
Anonim

Cov DATE datatype khw muag khoom hnub thiab sij hawm cov ntaub ntawv. Txawm tias hnub thiab sij hawm cov ntaub ntawv tuaj yeem sawv cev rau hauv ob qho tib si cim thiab tus lej datatypes, lub DATE datatype muaj cov khoom tshwj xeeb txuam nrog. Rau txhua tus DATE tus nqi, Oracle khaws cov ntaub ntawv hauv qab no: xyoo pua, xyoo, hli, hnub , teev, feeb, thiab thib ob.

Ib yam li ntawd, tib neeg nug, hnub twg hauv Oracle yog dab tsi?

DD-MON-YY

Qhov thib ob, Oracle khaws sijhawm li cas? Oracle Database converts cov ntaub ntawv rau a TIMESTAMP NROG LOCAL TIME ZONE tus nqi. Qhov no txhais tau tias lub sij hawm zone yog nkag (-08:00) yog hloov mus rau qhov kev sib kho lub sij hawm cheeb tsam tus nqi (-07:00). SQL> INSERT INTO table_tsltz VALUES(3, TIMESTAMP '2003-01-01 2:00:00 -08:00'); Tso cov ntaub ntawv.

Ua raws li qhov no, qhov sib txawv ntawm hnub tim thiab lub sijhawm nyob hauv Oracle yog dab tsi?

Qhov sib txawv ntawm DATE thiab TIMESTAMP hauv Oracle . DATE rov qab lub hli, hnub, xyoo, xyoo pua, teev, feeb, thiab vib nas this. Yog xav paub ntxiv granular, TIMESTAMP yuav tsum tau siv. Hnub tim yog siv los khaws cia hnub thiab lub sijhawm muaj nuj nqis suav nrog hli, hnub, xyoo, xyoo pua, teev, feeb thiab vib nas this.

Cov ntaub ntawv twg yog siv los khaws ob hnub thiab sijhawm rau kab hauv Oracle?

TIMESTAMP

Pom zoo: