Background Image

FORUM

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

 


* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.

OS
Linux 64bit 등
CUBRID Ver.
9.1
CUBRID TOOL Ver.
10.1.0.0006  (64bit)
응용 환경(API)
Manager 사용


* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.

 

에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------
테이블의 varchar형 컬럼에 list 함수로 생성한 값을 insert 하려고 하면 오류가 발생합니다.

create table AA ( 

AA_id VARCHAR(3)

steplist VARCHAR(500)

);

 

inert into AA

select BB_id, LIST(select CONCAT(step, ':', start_dt, '~', end_dt) from CC where CC_id = a.BB_id) as steplist from BB a

 

실행 오류 : -494
Semantic: Casting steplist to type varchar is not supported. insert into AA AA (i...[CAS INFO- ....

 

select 쿼리만 실행하면 오류없이 결과가 잘 나옵니다.

list_select결과.jpg

 

insert 시 위와 같은 오류 해결을 위해 어떻게 해야 하는지 문의드립니다.

 

DB 서버 OS : Linux CentOS 64bit

cubrid ver : 9.1.0.0218

매니저 버전 : 10.1.0.0006  (64bit)

 

  • ?
    엄기호 2023.02.27 13:33
    큐브리드를 이용해주셔서 감사합니다.

    select내에 list함수를 사용하여 축출하는 것은 괜찮으나 축출된 데이터를
    insert 하려면 insert할 컬럼 타입이 VARCHAR가 아닌 LIST VARCHAR를 사용 하여야 합니다.

    create table AA (
    AA_id VARCHAR(6),
    steplist LIST VARCHAR(500)
    );

    URL 참조 : https://www.cubrid.org/manual/ko/10.1/sql/datatype.html#collection-data-type

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

    Date2024.04.23 Byadmin Views141
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4480
    read more
  3. where in () 서브쿼리 관련 문의입니다

    Date2023.03.27 By제리리 Views114
    Read More
  4. 한글을 입력받아 한글을 리턴하는 CUBRID JAVA StoredProcedure 작성시 window 환경에서 리턴 값이 깨져서 출력 됨

    Date2023.03.22 By두목원슝 Views167
    Read More
  5. 큐브리드 DAMO(암호화)관련 버전 호환관련하여 문의드립니다.

    Date2023.03.20 By초코초코초 Views232
    Read More
  6. cubrid manager 에러??

    Date2023.03.20 By11시38분 Views229
    Read More
  7. PreparedStatement.executeBatch에서 일부 데이터의 오류 시 반환 값 문의

    Date2023.03.18 By새옹지마 Views347
    Read More
  8. db생성경로가 db테이블과 결과조회에 영향을 미치나요?

    Date2023.03.15 Bydfdfdd Views122
    Read More
  9. SQL statement violated NOT NULL constraint

    Date2023.03.15 Byyoo Views166
    Read More
  10. 콤마로 split하는 기능 구현 관련 문의

    Date2023.03.15 By플레이어블 Views312
    Read More
  11. insert문에서 replace

    Date2023.03.15 Byyoo Views128
    Read More
  12. cubrid 파라미터 바인딩

    Date2023.03.14 ByDJ Views172
    Read More
  13. /home/jenkins/workspace/cubrid_release_10.1/src/transaction/boot_cl.c, line 1138 CODE = -971 Tran = -1, EID = 1Program 'tranlist' (pid ) connected to database server 'test' on the host 'localhost'

    Date2023.03.13 Byjmkim Views198
    Read More
  14. macOS CUBRID 다운로드 질문

    Date2023.03.13 Bybk9395 Views198
    Read More
  15. CUBRID 11.2 & CUBRID Aadmin 11.1 오류 문의

    Date2023.03.08 By붉은구름 Views135
    Read More
  16. 도커에서 설치시 접속 문의드립니다.

    Date2023.03.07 By핫산 Views413
    Read More
  17. 특수문자 포함 LIKE검색

    Date2023.03.06 BySEO Views163
    Read More
  18. cubrid admin 질문 드립니다.

    Date2023.03.06 By초코초코초 Views119
    Read More
  19. plugin방식 호출

    Date2023.03.04 By네오랜덤 Views144
    Read More
  20. 서브쿼리시 질문드립니다.

    Date2023.02.28 Bydev123123 Views151
    Read More
  21. Cubrid DB 의 sqoop 사용시 옵션 문의

    Date2023.02.28 By망고라떼 Views100
    Read More
  22. 큐브리드 통계정보 관련 문의드립니다.

    Date2023.02.26 By초코초코초 Views121
    Read More
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 ... 201 Next
/ 201

Contact Cubrid

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