Background Image

FORUM

조회 수 15762 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
select bb, cc, dd, ee into v1, v2, v3, v4 from test where aa=1;

이렇게 하니까 큐브리드상의 변수로 v1, v2, v3, v4가 생기면서

그 안에 데이터가 들어가던데요...


select bb, cc, dd, ee into v1 from test where aa=1;

이렇게 하니까, 숫자가 서로 다르다면서 오류가 나더군요...

1. select로 가져오는 열 중에서 일부만 변수로 넣고 싶을땐 어떻게 하나요?

그러니까, bb, cc, dd는 변수에 넣지 않고, ee만 v1이라는 변수에 넣고 싶습니다.

2. 그리고 into 와 to 의 차이점은 뭐죠?
  • ?
    brightest 2009.02.26 06:28
    1. 컬럼 순서와 매칭되는 것이므로 달리 방법이 없습니다. ee를 제외한 나머지 쪽에는 쓰지 않을 임시 변수로 세팅하시면 어떨까요~. 즉, select aa, bb, cc,dd,ee into tmp, tmp, tmp, tmp,v1 from test where aa=1;

    2. into와 to 의 차이는 없습니다~.


  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views106513
    read more
  2. procedure 문의드립니다

    Date2009.07.03 By삽질쟁이 Views15902
    Read More
  3. The column name is invalid. 에러메시지 좀...

    Date2009.07.02 By논픽션Lover Views23420
    Read More
  4. DataBase 검사 오류

    Date2009.07.02 ByNonStop Views14009
    Read More
  5. 초보질문 - insert할때 질문

    Date2009.07.02 Byrusell Views12761
    Read More
  6. 데이터 보안기능 문의

    Date2009.07.01 Byhareton Views8
    Read More
  7. 큐브리드와 php 연동을 할려는데 문제가??

    Date2009.07.01 By흑심품은연필 Views14433
    Read More
  8. cubrid.jdbc.dirver.CUBRIDDriver 에러

    Date2009.06.30 By논픽션Lover Views15716
    Read More
  9. 복제 문의해요

    Date2009.06.28 By삽질쟁이 Views13698
    Read More
  10. select @@identity

    Date2009.06.27 By펭귄 Views22086
    Read More
  11. 웹서버(Win)와 DB서버를 분리할 때 odbc설치 방법

    Date2009.06.26 By안지민 Views19827
    Read More
  12. 안녕하세요? loaddb 에 대해 질문이 있습니다.

    Date2009.06.25 By서기97 Views13
    Read More
  13. CUBRID-8.1.4.1032-linux 완전삭제 방법

    Date2009.06.25 Byrupee76 Views9
    Read More
  14. ADD_MONTHS 함수의 사용

    Date2009.06.25 By체리필터 Views18574
    Read More
  15. 재귀적 조인에 대한 쿼리를 저장할 수 있나요?

    Date2009.06.23 Bysizers Views22053
    Read More
  16. cubrid.jdbc.jci.JdbcCacheWorker에서 java.lang.NullPointerException 계속 발생하네요...

    Date2009.06.23 By거만쟁이 Views30
    Read More
  17. spec 나 srpm 은 어디에서 받을 수 있나요?

    Date2009.06.21 By아주가끔은 Views12704
    Read More
  18. 로그관련 문의부탁드립니다.

    Date2009.06.19 ByNonStop Views11863
    Read More
  19. Visual Basic 관련 문의

    Date2009.06.19 By방랑아 Views12624
    Read More
  20. 큐브리드 2008 호스팅 업체가 있습니까?

    Date2009.06.17 By안지민 Views12108
    Read More
  21. Windows 7 64bit 에서 cubrid 설치 되나요?

    Date2009.06.17 By예수 Views17141
    Read More
Board Pagination Prev 1 ... 194 195 196 197 198 199 200 201 202 203 ... 211 Next
/ 211

Contact Cubrid

영업문의 070-4077-2112 / 기술문의 070-4077-2148 / 대표전화 070-4077-2110 / Email. contact_at_cubrid.com
Contact Sales