The SQL to get all/lastest bodycontent of a page

Normann P_ Nielsen _Netic_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2025

What is the SQL from a known page id?

This:

SELECT bodycontentid FROM bodycontent WHERE contentid IN (SELECT contentid FROM content WHERE contenttype = 'PAGE' and pageid=238805062);

Returns 0 and this:

 

SELECT bodycontentid FROM bodycontent WHERE contentid IN (SELECT contentid FROM content WHERE pageid=238805062);

 

returns 15 - all stuff except the page. The page has 75 versions.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.15.8
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events