database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 4307 게시물 읽기
No. 4307
Unable to identify an operator '=' for types 'text' and 'integer' ?
작성자
PgM
작성일
2002-08-20 23:17
조회수
923

errorERROR: Unable to identify an operator '=' for types 'text' and 'integer' You will have to retype this query using an explicit cast

 

와 같은 에러가 나는데 코드 상의 다음 부분에서 에러가 납니다.

 

$sql="SELECT count(*) AS count FROM survey_responses WHERE survey_id='$survey_id' AND question_id='$quest_array[$i]' AND response IN (1,2,3,4,5) AND group_id='$group_id'";

 

$result2=db_query($sql);

if (!$result2 || db_numrows($result2) < 1) {

echo "error";

echo db_error();

 

Unable to identify an operator '=' for types 'text' and 'integer' 라는 말로 봐선 뭔가 데이터 형식이 안맞는것 같은데 어디를 어떻게 고쳐야 할런지요?

 

감사합니다....

이 글에 대한 댓글이 총 2건 있습니다.

참고로...코드는 php 입니다...

PgM님이 2002-08-20 23:18에 작성한 댓글입니다.

테이블의 자료형을 살펴 보시기 바랍니다.

 

아마도 text type='integer type' 또는 반대로 query 를 준것 같습니다.

정재익(advance)님이 2002-08-21 11:16에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
4311Postgres 에서 Lock 모니터링 팁
임옥섭
2002-08-24
1734
4310UPDATE 명령의 속도에 관한 질문 [1]
임옥섭
2002-08-24
980
4308데이터베이스 인스톨시 대소문자 구별하는 방법은? [4]
홍종근
2002-08-22
1425
4307Unable to identify an operator '=' for types 'text' and 'integer' ? [2]
PgM
2002-08-20
923
4306UHC [1]
장동훈
2002-08-19
962
4305가져오는 데이터의 개수를 제어하는 법좀.. [1]
홍종근
2002-08-19
1414
4304PostgreSQL 로 변환하려구 합니다. [1]
노인석
2002-08-17
1271
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다