hi,
I want to query pageids of all the pages in a space. Could you please let me know which table stores this info?
Thanks in advance!
Chintu
You would need to join the content table on the spaces table, based on the spaceid in both columns, something like this:
SELECT title, contentid FROM content WHERE spaceid = (SELECT spaceid FROM spaces WHERE spacekey = 'yourspacename') ORDER BY 1;
or
SELECT C.title, C.contentid FROM content C INNER JOIN spaces S ON C.spaceid = S.spaceid ORDER BY title;
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.