/
SQL

SQL

On this page

Description

Display values from SQL statements on Confluence pages. Statements can range from read-only SELECT statements to Data Manipulation Language (DML) statements such as INSERT, UPDATE, and DELETE. 

Usage Parameters

NameRequiredDefault ValueMacro Browser LabelDescription
Data Source
(may be restricted)
(tick)
Data Source NameSpecify the Data Source name. It represents an application server defined Data Source or Data Source Profile defined by your administrator.
Output

Output format

Determines how the output is formatted:

  • HTML — Generates HTML from the result set data. Data is HTML encoded unless encoding has been disabled.
  • wiki — Generates and renders wiki markup from result set data. If the data might contain unintended wiki markup characters, set the escape parameter to true.
  • XHTML (Pro Edition) — Generates and renders XHTML from result set data. Data is HTML encoded unless encoding has been disabled (disableAntiXss).
  • unrenderedWiki (Pro Edition) — Generates wiki markup from result set data, similar to wiki, without rendering. Wraps with a table-plus macro suitable for copying to another system.

For more information on Common SQL parameters, refer to Working with SQL parameters - 9.x.

Examples

Explore SQL Parameters

The SQL Macro has dozens of built in parameters that you can explore and apply. 


Related content

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.