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

    [Tip] WM_COPYDATA 메시지로 프로그램간에 데이터 주고받는 방법

    트랙백 주소 : http://www.tipssoft.com/bulletin/tb.php/FAQ/319 팁스소프트에서 제공하는 프로그래밍과 관련된 자료나 정보들을 무단으로 복제하거나...
  • 2015-03-13 andrew

    [펌]제 목 : 영어인터뷰 뻔한 질문에 능숙한 답변

    제  목 : 영어인터뷰 뻔한 질문에 능숙한 답변   글쓴이 : Leon      등록일 : 07-08-15 02:41     조회 : 12194 영어 서류전형을 통과하고 난 후에는...
« ECLPISE가 이상 동작 할때 [펌] [UNITY] UI 해상도 대응하기! »

Leave a Reply Cancel reply

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

( optional )


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