Background Image

FORUM

2010.10.16 22:04

SQL 에러 질문

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

단축키

Prev이전 문서

Next다음 문서

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

Mysql 데이터를 Cubrid로 변환해서 테스트를 하고 있습니다.


헌데 mysql에서는 안생기던 문제가 생기는데 원인을 잘 모르겠습니다.


[error] => -494 [message] => Semantic: '=' operator is not defined on types bigint and char.

와같은 에러가 생기는 원인은 무엇인가요?




  • ?
    seongjoon 2010.10.18 23:16

    안녕하세요. 질문하신 부분에 대하여 답변을 드리겠습니다.

    위에서 발생한 문제는 auto casting으로 발생한 문제입니다. mysql에서는 char 컬럼에 int값이 들어갈 경우에 자동으로 int형으로 변환을 해주지만 CUBRID에서는 타입을 강하게 체크하기 때문에 auto castiong이 되지 않아서 생긴 문제입니다.

    해당 문제를 해결하기 위해서는 아래와 같은 명령어를 이용하여 casting을 해주시면 됩니다.

    select * from table_naem where bingint_value = cast('char_value' as bigint);

    매뉴얼의 http://www.cubrid.com/online_manual/cubrid_830/syntax/syntax_operator_cast.htm 을 참고하시면 도움이 될 것입니다.

     

     


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

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

    Date2020.04.09 Byadmin Views4476
    read more
  3. Cannot make connection to master server.... Bad file descriptor T.T

    Date2010.11.05 By노스 Views11937
    Read More
  4. SQL질문

    Date2010.11.05 By마이나스 Views7143
    Read More
  5. 큐브리드 매니저 접속이 안됩니다.

    Date2010.11.04 By김현성 Views8318
    Read More
  6. no 컬럼명을 사용해선 안되나요?

    Date2010.11.03 By코딩셔틀 Views10047
    Read More
  7. java.lang.ClassNotFoundException 에러가 납니다.

    Date2010.11.03 By코딩셔틀 Views20114
    Read More
  8. unisql 6 버전을 큐브리드로 마이그레이션 하는 방법을 찾고있습니다.

    Date2010.11.02 By제발요 Views7868
    Read More
  9. php컴파일할려고하면..

    Date2010.10.29 BySoMa Views7466
    Read More
  10. 동시접속 포트 수 문의

    Date2010.10.29 By유니콘 Views11925
    Read More
  11. broker 구동이 안되네요

    Date2010.10.28 By히로 Views9651
    Read More
  12. primary key의 인덱스에 관한 질문

    Date2010.10.27 By카르마 Views12020
    Read More
  13. A provider-specific error occurred 에러

    Date2010.10.26 By유니콘 Views10262
    Read More
  14. 루씬팩

    Date2010.10.26 BySoMa Views8306
    Read More
  15. 설치시 에러가 발생합니다.

    Date2010.10.24 BySoMa Views14513
    Read More
  16. server 다운문제

    Date2010.10.19 By김현성 Views7631
    Read More
  17. TO_CHAR 관련 질문입니다.

    Date2010.10.18 By노스 Views21947
    Read More
  18. SQL 에러 질문

    Date2010.10.16 By카르마 Views9958
    Read More
  19. 윈도우 서비스로 동작시킬 때와 administrator 로 실행 할 때 차이

    Date2010.10.16 By노스 Views8834
    Read More
  20. 스트링 함수 문의

    Date2010.10.15 Bydaltago87 Views6
    Read More
  21. CMT 마이그레이션중...

    Date2010.10.15 By카르마 Views9044
    Read More
  22. db를 총 몇개까지 생성할 수있나요?

    Date2010.10.15 By스카이 Views7958
    Read More
Board Pagination Prev 1 ... 157 158 159 160 161 162 163 164 165 166 ... 201 Next
/ 201

Contact Cubrid

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