|
|
发表于 2010/8/18 12:45:19
|
显示全部楼层
本帖最后由 sumury 于 2010/8/18 13:42 编辑
邮件已经发送。
查询SQL
SELECT FL.FILE_NAME,
FL.FILE_CONTENT_TYPE,
DBMS_LOB.GETLENGTH(FILE_DATA) FILE_SIZE,
FAD.ENTITY_NAME,
FAD.PK1_VALUE,
FAD.CATEGORY_ID,
FDCV.name
FROM FND_ATTACHED_DOCUMENTS FAD, FND_DOCUMENTS_TL FD, FND_LOBS FL, FND_DOCUMENT_CATEGORIES_VL FDCV
WHERE FAD.ENTITY_NAME = 'YOUR ENTITY NAME'
AND FAD.PK1_VALUE = 'YOUR ENTITY PRIMARY KEY'
AND FD.DOCUMENT_ID = FAD.DOCUMENT_ID
AND FL.FILE_ID = FD.MEDIA_ID
AND FAD.CATEGORY_ID = FDCV.category_id
|
|