Andrew's Garage

Shrunk Expand

Primary Navigation

DB별 함수 비교

isnull => DB2 COALESCE

strcat = > || 로 묶기

 

 

MySQL:
— Convert the current date to YYYYMM format
  SELECT DATE_FORMAT(NOW(), ‘%Y%m’);

DB2:
— Convert the current date to YYYYMM format
  SELECT VARCHAR_FORMAT(CURRENT_DATE, ‘YYYYMM’) FROM sysibm.sysdummy1;

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related


Posted on 2014-08-05 9:56 PM by andrew Comment
📂This entry was posted in 일상

Related Posts

  • 2015-01-18 andrew

    명언

    진정으로 만족하는 유일한 길은 당신이 위대한 일이라고 믿는 일을 하는 걸이다. 위대한 일을 하는 유일한 길은 당신이 사랑하는 일을 하는 것이다. 사랑하는 사람을 찾듯 사랑하는 일을...
  • 2014-07-26 andrew

    [MFC] CEdit 에서 Enter를 통한 줄바꿈 적용

    <출처> http://mainia.tistory.com/599 CEdit 컨트롤을 사용해 한줄이 아닌 여러줄의 멀티라인 글을 쓸수 있도록 설정해야 할 때가 있다. Pro...
« ECLPISE가 이상 동작 할때 [펌] [UNITY] UI 해상도 대응하기! »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

( optional )


©2026 boots Entries RSS and Comments RSS Child theme Boots of Raindrops Theme