【问题标题】:Jive 5.0 Current Profile ImageJive 5.0 当前配置文件图片
【发布时间】:2014-02-17 20:15:07
【问题描述】:

我目前正在尝试从 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 数据库的哪个位置?

【问题讨论】:

    标签: postgresql jive


    【解决方案1】:

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

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-12
      相关资源
      最近更新 更多