我目前正在尝试从Jive5.0数据库导出配置文件图像。我有一个postgre查询,它可以提取图像。但是我在确定哪个图像是当前为该配置文件选择的图像时遇到了困难。
select *
from jiveuser u
LEFT JOIN jiveusercontainer c ON u.userid = c.userid
LEFT JOIN jivecontent ct ON ct.containerid = c.usercontainerid
left join jiveattachment ja on ja.objectid = ct.contentid
WHERE ct.contenttype = 501 and
ja.objecttype = 501 and
u.userid in (4794) and
filename = 'profile_image_500.png'
order by ja.modificationdate desc有人知道Jive数据库中存储这些信息的位置吗?
发布于 2014-02-17 20:41:42
我相信这是一个查询,它将提取当前的配置文件图像:
select ja.attachmentid, c.displayname, ja.creationdate, ja.filename , (select propvalue from jivecontentprop jcpi where jcpi.contentid = ct.contentid and propname = 'index' )
from jiveuser u
LEFT JOIN jiveusercontainer c ON u.userid = c.userid
LEFT JOIN jivecontent ct ON ct.containerid = c.usercontainerid
left join jiveattachment ja on ja.objectid = ct.contentid
WHERE ct.contenttype = 501 and
ja.objecttype = 501 and
u.userid in (4794) and
filename = 'profile_image_500.png'
order by propvalue
limit 1https://stackoverflow.com/questions/21838459
复制相似问题