标签:
--1. 查询 Long Text数据: SELECT FAD.SEQ_NUM "Seq Number", FDAT.USER_NAME "Data Type", FDCT.USER_NAME "Category User Name", FAD.ATTACHED_DOCUMENT_ID "Attached Document Id", FDET.USER_ENTITY_NAME "User Entity", FD.DOCUMENT_ID "Document Id", FAD.ENTITY_NAME "Entity Name", FD.MEDIA_ID "Media Id", FD.URL "Url", FDT.TITLE "Title", FDLT.LONG_TEXT "Attachment Text" FROM FND_DOCUMENT_DATATYPES FDAT, FND_DOCUMENT_ENTITIES_TL FDET, FND_DOCUMENTS_TL FDT, FND_DOCUMENTS FD, FND_DOCUMENT_CATEGORIES_TL FDCT, FND_ATTACHED_DOCUMENTS FAD, FND_DOCUMENTS_LONG_TEXT FDLT WHERE FD.DOCUMENT_ID = FAD.DOCUMENT_ID AND FDT.DOCUMENT_ID = FD.DOCUMENT_ID AND FDCT.CATEGORY_ID = FD.CATEGORY_ID AND FD.DATATYPE_ID = FDAT.DATATYPE_ID AND FAD.ENTITY_NAME = FDET.DATA_OBJECT_CODE AND FDLT.MEDIA_ID = FD.MEDIA_ID AND FDAT.NAME = ‘LONG_TEXT‘ --2. 查询Short Text : SELECT FAD.SEQ_NUM "Seq Number", FDAT.USER_NAME "Data Type", FDCT.USER_NAME "Category User Name", FAD.ATTACHED_DOCUMENT_ID "Attached Document Id", FDET.USER_ENTITY_NAME "User Entity", FD.DOCUMENT_ID "Document Id", FAD.ENTITY_NAME "Entity Name", FD.MEDIA_ID "Media Id", FD.URL "Url", FDT.TITLE "Title", FDST.SHORT_TEXT "Attachment Text" FROM FND_DOCUMENT_DATATYPES FDAT, FND_DOCUMENT_ENTITIES_TL FDET, FND_DOCUMENTS_TL FDT, FND_DOCUMENTS FD, FND_DOCUMENT_CATEGORIES_TL FDCT, FND_ATTACHED_DOCUMENTS FAD, FND_DOCUMENTS_SHORT_TEXT FDST WHERE FD.DOCUMENT_ID = FAD.DOCUMENT_ID AND FDT.DOCUMENT_ID = FD.DOCUMENT_ID AND FDCT.CATEGORY_ID = FD.CATEGORY_ID AND FD.DATATYPE_ID = FDAT.DATATYPE_ID AND FAD.ENTITY_NAME = FDET.DATA_OBJECT_CODE AND FDST.MEDIA_ID = FD.MEDIA_ID AND FDAT.NAME = ‘SHORT_TEXT‘
标签:
原文地址:http://www.cnblogs.com/huanghongbo/p/4639086.html