Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

In many cases, you may want your query to know the current logged in user, what page the query is on, or other Confluence related metadata. This is easily done using the RUN and various Pre-defined variables. For SQL for Confluence release 5.2 and later, a special substitution variable @user_id@ is available as well. The SQL macros will replace this text with the user id of the currently logged in user or anonymous if the user is not logged in.

Include Page
SUPPORT:How to use Confluence metadata in SQL queries
SUPPORT:How to use Confluence metadata in SQL queries