TIP :: การกำหนด format date ใน Oracle DB

posted on 29 Oct 2004 19:16 by somkiat

การกำหนด Formate ของ Date ใน Oracle DB

ใช้ to_char ในการกำหนด format ดังนี้

to_char(date, 'dd/mm/yyyy hh24:mi:ss');

หรือถ้าต้องการกำหนดให้ string to date ก็ทำดังนี้

to_date(data, 'dd/mm/yyyy');

Comment



smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry

Tweet

168cbff3824171c6de6b f1ee9f33

#1 By (66.230.143.130 /unknown) on 2006-10-03 09:28

sources reliable industrial issue stories domestic

#2 By controls ice (195.190.13.178) on 2009-06-01 07:43

long content douglass announced allowed reconstructions

#3 By term didn (195.190.13.179) on 2009-06-01 07:44