confluence_sql_queries
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| confluence_sql_queries [2018/09/20 12:11] – pawel | confluence_sql_queries [2026/02/01 12:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Below is the list of SQL queries to perform tasks directly on the database. Please note that you should always shut down Confluence & backup your database before performing any of these queries. | Below is the list of SQL queries to perform tasks directly on the database. Please note that you should always shut down Confluence & backup your database before performing any of these queries. | ||
| === Find all spaces and the space owner === | === Find all spaces and the space owner === | ||
| + | <code java> | ||
| select s.SPACEKEY, s.SPACENAME, | select s.SPACEKEY, s.SPACENAME, | ||
| from SPACES s | from SPACES s | ||
| Line 8: | Line 9: | ||
| join cwd_user u1 on u.username = u1.user_name | join cwd_user u1 on u.username = u1.user_name | ||
| where p.PERMTYPE = ' | where p.PERMTYPE = ' | ||
| + | </ | ||
confluence_sql_queries.1537459867.txt.gz · Last modified: (external edit)
