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

  • 2014-12-22 andrew

    Auto Updater의 구성에 대한 단상.

    Update 검증 화일 구조 <File Name>;<time-stamp>;<version> [// comments ] <File Name...
  • 2014-08-07 andrew

    인류 100억 시대와 불요불급한 소비의 문제

    우리의 지구가 감당할 수 있는 사람의 수에 한계가 존재한다는 것, 이를 부정하는 건 어리석은 생각이다. 단지 그 수가 70억(현재 전 세계 인구)이냐, 100억이냐, 아니면 280...
« 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