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
운영게시판
최근게시물
Oracle Q&A 40604 게시물 읽기
No. 40604
ora-00904 ERROR
작성자
최동복
작성일
2014-11-06 11:37
조회수
12,315

select * from (

select bm.TENANT_ID,bm.PORTAL_ID,bm.TABLE_ID,bm.BOARD_ID,bm.BOARD_TYPE,

bm.USE_CATEGORY,bm.CATEGORY_ID,bm.USE_DEPT_BOARD,bm.USE_POST_DELIBERATION,bm.USE_POST_REPLY,

bm.USE_POST_YES_NO,bm.USE_POST_REPORT,bm.USE_ANONYMOUS,bm.USE_POST_SECURITY,bm.USE_WIKI, bm.SEARCH_TERM, bm.USE_TAG, bm.FORM_ID, bm.PTL_CTX_NAME,

bm.USE_NO_CERT,bm.USE_POST_LIFECYCLE,bm.POST_LIFECYCLE_TERM,bm.USE_NEW_POST,bm.NEW_POST_TERM,

bm.USE_COMMENT,bm.USE_FBD_WORD,bm.USE_PRE_NEXT,bm.USE_CHARGER,bm.USE_HEADINGS,bm.HEADER_CODE,

bm.USE_BOOMUP,bm.CREATOR_UID,bm.CREATOR_NAME,bm.CREATE_DATE,bm.USE_SOURCE_COPY,

bm.create_mlg, bm.delete_mlg, bm.view_mlg, bm.view_restrict_option, bm.aview_mlg, bm.reply_mlg, bm.comment_mlg,

(select r.resource_name from tbbs_table_master tm, {{vo.comDbUser}}.tcom_resource r

where tm.tenant_id = r.tenant_id

and tm.portal_id = r.portal_id

and tm.tenant_id = :vo.id.tenantId

and tm.portal_id = :vo.id.portalId

and tm.table_id = bm.table_id

and tm.table_name = r.resource_id

and r.lang_type = :vo.langType) table_name, r.resource_name board_name

from tbbs_board_master bm, {{vo.comDbUser}}.tcom_resource r

where bm.tenant_id = r.tenant_id

and bm.portal_id = r.portal_id

and bm.tenant_id = :vo.id.tenantId

and bm.portal_id = :vo.id.portalId

and bm.board_name = r.resource_id

and r.lang_type = :vo.langType

and bm.board_type = :vo.boardType

and bm.board_id != :vo.id.boardId

and bm.board_id in ({{vo.boardIds}})

#if ($vo.id.tableId && !$vo.id.tableId.equals(""))

and bm.table_id = :vo.id.tableId

#end

#if($vo.useCategory && !$vo.useCategory.equals(""))

and bm.use_category = :vo.useCategory

#end

 

#if ($vo.usePostDeliberation && !$vo.usePostDeliberation.equals(""))

and bm.use_post_deliberation = :vo.usePostDeliberation

#end

#if ($vo.useAnonymous && !$vo.useAnonymous.equals(""))

and bm.use_anonymous = :vo.useAnonymous

#end

#if ($vo.useHeadings && !$vo.useHeadings.equals(""))

and bm.use_headings = :vo.useHeadings

#end

) a

where 1 = 1

#if ($vo.boardName && !$vo.boardName.equals(""))

and board_name like '%' + :vo.boardName + '%' ESCAPE '_'

#end

 

#if ($vo.tableName && !$vo.tableName.equals(""))

and table_name like '%' + :vo.tableName + '%' ESCAPE '_'

#end

order by

#if ($vo.sortBy && !$vo.sortBy.equals(""))

{{vo.sortBy}} {{vo.sortType}},

#else

board_name,

#end

create_date desc

]]>

select * from TBBS_BOARD_COL_INFO

where tenant_id = :vo.id.tenantId

and portal_id = :vo.id.portalId

#if ($vo.tableId && !$vo.tableId.equals(""))

and table_id = :vo.tableId

#end

and board_id = :vo.sourceBoardId

and column_expand = '1'

]]>

 

 

ERROR

org.anyframe.query.QueryServiceException: Query Service : Fail to select [query id = 'selectTspBbsMasterByTypes']. Query = [ select * from ( select bm.TENANT_ID,bm.PORTAL_ID,bm.TABLE_ID,bm.BOARD_ID,bm.BOARD_TYPE, bm.USE_CATEGORY,bm.CATEGORY_ID,bm.USE_DEPT_BOARD,bm.USE_POST_DELIBERATION,bm.USE_POST_REPLY, bm.USE_POST_YES_NO,bm.USE_POST_REPORT,bm.USE_ANONYMOUS,bm.USE_POST_SECURITY,bm.USE_WIKI, bm.SEARCH_TERM, bm.USE_TAG, bm.FORM_ID, bm.USE_NO_CERT,bm.USE_POST_LIFECYCLE,bm.POST_LIFECYCLE_TERM,bm.USE_NEW_POST,bm.NEW_POST_TERM, bm.USE_COMMENT,bm.USE_FBD_WORD,bm.USE_PRE_NEXT,bm.USE_CHARGER,bm.USE_HEADINGS,bm.HEADER_CODE, bm.USE_BOOMUP,bm.CREATOR_UID,bm.CREATOR_NAME,bm.CREATE_DATE,bm.USE_SOURCE_COPY, bm.create_mlg, bm.delete_mlg, bm.view_mlg, bm.view_restrict_option, bm.aview_mlg, bm.reply_mlg, bm.comment_mlg, r.resource_name board_name from TTSP_BBS_MASTER bm, COM_USER.tcom_resource r where bm.tenant_id = r.tenant_id and bm.portal_id = r.portal_id and bm.space_id = :vo.id.spaceId and bm.tenant_id = :vo.id.tenantId and bm.portal_id = :vo.id.portalId and bm.board_name = r.resource_id and r.lang_type = :vo.langType and bm.board_type = :vo.boardType and bm.board_id != :vo.id.boardId and bm.board_id in ('201411051605347151011') and bm.use_category = :vo.useCategory and bm.use_post_deliberation = :vo.usePostDeliberation and bm.use_anonymous = :vo.useAnonymous ) where 1 = 1 order by board_name, create_date desc ] Reason = [sql; nested exception is java.sql.SQLException: ORA-00904: "BM"."TABLE_ID": 부적합한 식별자 ]. 이렇게 뜨는데 왜그런거죠?

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

[TTSP_BBS_MASTER] 테이블에는 [TABLE_ID] 라는 컬럼이 없다는 뜻.

마농(manon94)님이 2014-11-06 13:53에 작성한 댓글입니다.
이 댓글은 2014-11-06 13:53에 마지막으로 수정되었습니다.
[Top]
No.
제목
작성자
작성일
조회
40610procedure에서 long으로 선언한게 혹시 저절로 varchar로 바뀌나요? [1]
자바천재
2014-11-13
6791
40609쿼리 질문입니다. [3]
db 사랑
2014-11-13
7048
40608ORA-01805 error in date/time operation [1]
이돈휘
2014-11-10
8606
40604ora-00904 ERROR [1]
최동복
2014-11-06
12315
40603쿼리좀 봐주세요...ㅜㅜ [3]
초보자
2014-11-05
7716
40602쿼리 속도가 너무느려서 질문드립니다. [2]
최창식
2014-11-05
7900
40601약간 꼬인 계층형 쿼리?? [1]
ㅇㅇㅇ
2014-11-04
7564
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다