gpt4 book ai didi

postgresql - Jive 5.0 当前个人资料图片

转载 作者:行者123 更新时间:2023-11-29 13:31:41 25 4
gpt4 key购买 nike

我目前正在尝试从 Jive 5.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 数据库中的什么地方?

最佳答案

这是我认为会提取当前个人资料图片的查询:

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 1

关于postgresql - Jive 5.0 当前个人资料图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21838459/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com