SQL : “ú•tŠÖ”


  ExcelAMDB




select
	Date() as “ú•t•”•ª
	,Time() as ŽžŠÔ•”•ª
	,Now() as “ú•t‚ÆŽžŠÔ1
	,Now as “ú•t‚ÆŽžŠÔ2
	,Year('2010/01/21 1:02:03') as ”N1  
	,Month('2010/01/21 1:02:03') as ŒŽ1 
	,Day('2010/01/21 1:02:03') as “ú1 
	,Hour('2010/01/21 1:02:03') as Žž1 
	,Minute('2010/01/21 1:02:03') as •ª1 
	,Second('2010/01/21 1:02:03') as •b1
	,Now() + 1 as “ú”‰ÁŽZ1
	,DateAdd('d', 1, Now()) as “ú”‰ÁŽZ2
	,DateAdd('m', -1, Now()) as ŒŽ”‰ÁŽZ 
	,DateAdd('yyyy', 1, Now()) as ”N”‰ÁŽZ 
	,DateAdd('ww', -1, Now()) as T”‰ÁŽZ 
	,DateDiff('d', '2005/01/01', Now()) as Œo‰ß“ú”
	,DatePart('yyyy', Now()) as ”N2
	,DatePart('m', Now()) as ŒŽ2
	,DatePart('d', Now()) as “ú2
	,DatePart('h', Now()) as Žž2
	,DatePart('n', Now()) as •ª2
	,DatePart('s', Now()) as •b2
	,DatePart('w', Now()) as —j“ú
	,DatePart('ww', Now()) as T
	,DatePart('y', Now()) as ”NŠÔ’ÊŽZ“ú
	,DateValue('H1/01/01') as •½¬
	,DateValue('S1/01/01') as º˜a
	,DateValue('T1/01/01') as ‘吳
	,DateValue('M1/01/01') as –¾Ž¡
	,Format('2005/01/01', 'yyyy/MM/dd') as “ú•t•¶Žš—ñ1
	,Format('2005/01/01', 'yyyy/M/d') as  “ú•t•¶Žš—ñ2


“ú•t•”•ªŽžŠÔ•”•ª“ú•t‚ÆŽžŠÔ1“ú•t‚ÆŽžŠÔ2”N1
2010/01/212:12:382010/01/21 2:12:382010/01/21 2:12:382010
ŒŽ1“ú1Žž1•ª1•b1
121123
“ú”‰ÁŽZ1“ú”‰ÁŽZ2ŒŽ”‰ÁŽZ”N”‰ÁŽZT”‰ÁŽZ
2010/01/22 2:12:382010/01/22 2:12:382009/12/21 2:12:382011/01/21 2:12:382010/01/14 2:12:38
Œo‰ß“ú””N2ŒŽ2“ú2Žž2
184620101212
•ª2•b2—j“úT”NŠÔ’ÊŽZ“ú
12385421
•½¬º˜a‘吳–¾Ž¡“ú•t•¶Žš—ñ1
1989/01/011926/01/011912/01/011868/01/012005/01/01
“ú•t•¶Žš—ñ2
2005/1/1

  

select 
	switch(
		Weekday(now)=1,'“ú'
		,Weekday(now)=2,'ŒŽ'
		,Weekday(now)=3,'‰Î'
		,Weekday(now)=4,'…'
		,Weekday(now)=5,'–Ø'
		,Weekday(now)=6,'‹à'
		,Weekday(now)=7,'“y'
	) as —j“ú1
	,switch(
		Weekday(now,2)=1,'ŒŽ'
		,Weekday(now,2)=2,'‰Î'
		,Weekday(now,2)=3,'…'
		,Weekday(now,2)=4,'–Ø'
		,Weekday(now,2)=5,'‹à'
		,Weekday(now,2)=6,'“y'
		,Weekday(now,2)=7,'“ú'
	) as —j“ú2;

  

Microsoft ƒhƒLƒ…ƒƒ“ƒg

Format ŠÖ”‚Ì“ú•t‚ÆŽžŠÔ‚̏‘Ž®
DateValue ŠÖ”
Weekday ŠÖ”











  SQLServer




  

select
	GETDATE() + 1 as “ú”‰ÁŽZ1
	,DATEADD(d, 1, GETDATE()) as “ú”‰ÁŽZ2
	,DATEADD(m, -1, GETDATE()) as ŒŽ”‰ÁŽZ
	,DATEADD(yy, 1, GETDATE()) as ”N”‰ÁŽZ
	,DATEADD(ww, -1, GETDATE()) as T”‰ÁŽZ
	,DATEDIFF(d, '2005/01/01', GETDATE()) as Œo‰ß“ú”
	,DATEPART(d, GETDATE()) as “ú
	,DATEPART(y, GETDATE()) as ”NŠÔ’ÊŽZ“ú
	,DATEPART(hh, GETDATE()) as Žž
	,DATEPART(n, GETDATE()) as •ª
	,DATEPART(s, GETDATE()) as •b
	,DATEPART(ms, GETDATE()) as milli•b
	,DATEPART(m, GETDATE()) as ŒŽ
	,DATEPART(w, GETDATE()) as —j“ú
	,DATEPART(ww, GETDATE()) as T
	,DATEPART(yyyy, GETDATE()) as ”N
	,CONVERT(varchar, GETDATE(),120) as “ú•t•ÒW1
	,CONVERT(varchar, GETDATE(),111) as “ú•t•ÒW2
	,CONVERT(varchar, GETDATE(),11) as “ú•t•ÒW3
	,CONVERT(varchar, GETDATE(),112) as “ú•t•ÒW2
	,CONVERT(varchar, GETDATE(),12) as “ú•t•ÒW3
  

Microsoft ‚Ì CONVERTŠÖ” ‚̃Xƒ^ƒCƒ‹ˆê—— ‚ւ̃Šƒ“ƒN

œ“ú”‰ÁŽZ1œ“ú”‰ÁŽZ2œŒŽ”‰ÁŽZœ”N”‰ÁŽZ
2008/03/26 10:52:302008/03/26 10:52:302008/02/25 10:52:302009/03/25 10:52:30
œT”‰ÁŽZœŒo‰ß“ú”œ“úœ”NŠÔ’ÊŽZ“ú
2008/03/18 10:52:3011792585
œŽžœ•ªœ•bœmilli•b
105230173
œŒŽœ—j“úœTœ”N
33132008
œ“ú•t•ÒW1œ“ú•t•ÒW2œ“ú•t•ÒW3œ“ú•t•ÒW2œ“ú•t•ÒW3
2008-03-25 10:52:302008/03/2508/03/2520080325080325

  MySQL

  

select 
	NOW() + INTERVAL 1 DAY as “ú”‰ÁŽZ1
	,DATE_ADD(NOW(),INTERVAL 1 DAY) as “ú”‰ÁŽZ2
	,DATE_ADD(NOW(),INTERVAL -1 MONTH) as ŒŽ”‰ÁŽZ
	,DATE_ADD(CURDATE(),INTERVAL 1 YEAR) as ”N”‰ÁŽZ
	,TO_DAYS(NOW()) - TO_DAYS(CAST('2005/01/01' as DATETIME)) as Œo‰ß“ú”
	,DATE_FORMAT(NOW(),'%d') as “ú
	,DATE_FORMAT(NOW(),'%j') as ”NŠÔ’ÊŽZ“ú
	,DAYOFYEAR(NOW()) as ”NŠÔ’ÊŽZ“ú
	,DATE_FORMAT(NOW(),'%H') as Žž
	,DATE_FORMAT(NOW(),'%i') as •ª
	,DATE_FORMAT(NOW(),'%S') as •b
	,DATE_FORMAT(NOW(),'%m') as ŒŽ
	,DATE_FORMAT(NOW(),'%w') as —j“ú
	,DATE_FORMAT(NOW(),'%U') as T
	,DATE_FORMAT(NOW(),'%Y') as ”N
	,DATE_FORMAT(NOW(),'%Y-%m-%d') as “ú•t

  


12345678
“ú”‰ÁŽZ1“ú”‰ÁŽZ2ŒŽ”‰ÁŽZ”N”‰ÁŽZŒo‰ß“ú”“ú”NŠÔ’ÊŽZ“ú”NŠÔ’ÊŽZ“ú
2009-03-14
16:18:34
2009-03-14
16:18:34
2009-02-13
16:18:34
2010-03-1315321307272
Žž•ª•bŒŽ—j“úT”N“ú•t
1618340351020092009-03-13

  PostgreSQL

ŠÂ‹«•Ï” TZ=JST-9

  

select
	now(),localtime
	,now() + interval '1 day' as “ú”‰ÁŽZ
	,now() + interval '-1 month' as “ú”‰ÁŽZ
	,now() + interval '1 year' as ”N”‰ÁŽZ
	,current_date - '2005/01/01' as Œo‰ß“ú”
	,date_part('day', now()) as “ú
	,date_part('doy', now()) as ”NŠÔ’ÊŽZ“ú
	,date_part('hour', now()) as Žž
	,date_part('minute', now()) as •ª
	,date_part('second', now()) as •b
	,date_part('milliseconds', now()) as milli•b
	,date_part('month', now()) as ŒŽ
	,date_part('dow', now()) as —j“ú
	,date_part('week', now()) as T
	,date_part('year', now()) as ”N
	,to_char(now(), 'YYYY/MM/DD HH24:MI:SS') as “ú•t•¶Žš—ñ1
	,to_char(now(), 'YYYY/FMMM/FMDD FMHH24:FMMI:FMSS') as “ú•t•¶Žš—ñ2
  


123456
nowtime“ú”‰ÁŽZ“ú”‰ÁŽZ”N”‰ÁŽZŒo‰ß“ú”
2009-03-13 16:31:50.503238+0916:31:50.5032382009-03-14 16:31:50.503238+092009-02-13 16:31:50.503238+092010-03-13 16:31:50.503238+091532
“ú”NŠÔ’ÊŽZ“úŽž•ª•bmilli•b
1372163150.50323850503.238
ŒŽ—j“úT”N“ú•t•¶Žš—ñ1“ú•t•¶Žš—ñ2
351120092009/03/13 16:31:502009/3/13 16:31:50


  Oracle

  

select
	sysdate
	,sysdate + 1 as “ú”‰ÁŽZ
	,ADD_MONTHS( sysdate, -1 ) as ŒŽ”‰ÁŽZ 
	,ADD_MONTHS( sysdate, 1 * 12 ) as ”N”‰ÁŽZ 
	,TRUNC(sysdate)-TO_DATE('2005/01/01') as Œo‰ß“ú”
	,EXTRACT(day from sysdate) as “ú
	,EXTRACT(month from sysdate) as ŒŽ
	,EXTRACT(year from sysdate) as ”N
	,TO_CHAR(sysdate,'HH24') as Žž
	,TO_CHAR(sysdate,'MI') as •ª
	,TO_CHAR(sysdate,'SS') as •b
	,TO_CHAR(sysdate,'DDD') as ”NŠÔ’ÊŽZ“ú
	,TO_CHAR(sysdate,'D') as —j“ú
	,TO_CHAR(sysdate,'WW') as T
	,TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS') as “ú•t•¶Žš—ñ
	,MONTHS_BETWEEN(sysdate,'2005/01/01') as ŠúŠÔŒŽ”
	,TO_CHAR(LAST_DAY(sysdate),'DD')  as ŒŽ‚̍ŏI“ú
from dual
  




yahoo  google  MSDN  MSDN(us)  WinFAQ  Win Howto  tohoho  ie_DHTML  vector  wdic  Ž«‘  “V‹C 


[access]
CCBot/2.0 (https://commoncrawl.org/faq/)
19/07/24 11:10:09
InfoBoard Version 1.00 : Language=Perl

BatchHelper COMprog CommonSpec Cprog CprogBase CprogSAMPLE CprogSTD CprogSTD2 CprogWinsock Cygwin GameScript HTML HTMLcss InstallShield InstallShieldFunc JScript JScriptSAMPLE Jsfuncs LLINK OldProg OracleGold OracleSilver PRO PRObrowser PROc PROconePOINT PROcontrol PROftpclient PROjscript PROmailer PROperl PROperlCHAT PROphp PROphpLesson PROphpLesson2 PROphpLesson3 PROphpfunction PROphpfunctionArray PROphpfunctionMisc PROphpfunctionString PROsql PROvb PROvbFunction PROvbString PROvbdbmtn PROvbonepoint PROwebapp PROwin1POINT PROwinSYSTEM PROwinYOROZU PROwindows ProjectBoard RealPHP ScriptAPP ScriptMaster VBRealtime Vsfuncs a1root access accreq adsi ajax amazon argus asp aspSample aspVarious aspdotnet aw2kinst cappvariety centura ckeyword classStyle cmaterial cmbin cmdbapp cmenum cmlang cmlistbox cmstd cmstdseed cmtxt cs daz3d db dbCommon dbaccess dnettool dos download flex2 flex3 flex4 framemtn framereq freeWorld freesoft gimp ginpro giodownload google hdml home hta htmlDom ie9svg install java javaSwing javascript jetsql jquery jsp jspTest jspVarious lightbox listasp listmsapi listmsie listmsiis listmsnt listmspatch listmsscript listmsvb listmsvc memo ms msde mysql netbeans oraPlsql oracle oracleWiper oraclehelper orafunc other panoramio pear perl personal pgdojo pgdojo_cal pgdojo_holiday pgdojo_idx pgdojo_ref pgdojo_req php phpVarious phpguide plsql postgres ps r205 realC realwebapp regex rgaki ruby rule sboard sc scprint scquest sdb sdbquest seesaa setup sh_Imagick sh_canvas sh_dotnet sh_google sh_tool sh_web shadowbox shgm shjquery shvbs shweb sjscript skadai skywalker smalltech sperl sqlq src systemdoc tcpip tegaki three toolbox twitter typeface usb useXML vb vbdb vbsfunc vbsguide vbsrc vpc wcsignup webanymind webappgen webclass webparts webtool webwsh win8 winofsql wmi work wp youtube