Delphi Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
델파이 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
FreePascal/Lazarus
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
델마당
볼랜드포럼 광고 모집

델파이 Q&A
Delphi Programming Q&A
[10682] 쿼리문 프로그램에 삽입변환
민운기 [] 1250 읽음    2006-04-27 16:47
select    dept_name,
        sum(decode(laser_chk,'Y',out_amt,0)) LASER,
        sum(decode(laser_chk,'Y',out_amt*cost,0)) LASET_COST,
        sum(decode(laser_chk,'N',decode(color_chk,'B',out_amt,0),0)) BK_INK,
        sum(decode(laser_chk,'N',decode(color_chk,'B',out_amt*cost,0),0)) BK_COST,
        sum(decode(laser_chk,'N',decode(color_chk,'C',out_amt,0),0)) CO_INK,
        sum(decode(laser_chk,'N',decode(color_chk,'C',out_amt*cost,0),0)) CO_COST,
        sum(out_amt) TOTAL_AMT, sum(out_amt*cost) TOTAL_COST
from    somo_mst, somo_out, insa_tm_view
where    somo_mst.code=somo_out.code
  and    somo_mst.gubun=somo_out.gubun
  and    somo_out.out_dept_code=insa_tm_view.dept_code
  and    out_date like :input_date || '%'
  and    somo_mst.gubun='65'
  and    pum_gu='1'
group by dept_name
order by TOTAL_COST desc


위와 같은 query문을 Delphi에서 사용하고자 합니다.
보통 '와 같은 것은 +#39+와 같이 쓰더군요
계속 에러가 나서 못잡고 있습니다.
알려 주세요~~

+ -

관련 글 리스트
10682 쿼리문 프로그램에 삽입변환 민운기 1250 2006/04/27
10685     Re:쿼리문 프로그램에 삽입변환 하늘비 1227 2006/05/01
10688         Re:Re:쿼리문 프로그램에 삽입변환 민운기 1205 2006/05/02
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.