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-08-05 andrew

    통계의 중요성, 그리고 사회 생활이란…

    눈에 보이는 것이 전부는 아닙니다. 보이는 것 너머에 있는 본질, 실제를 알아볼 수 있는 혜안이 필요하지요. 미국 메이저리그의 전설적인 유격수 데릭 지터. 골든글로브상을 다섯 번이...
« 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