Skip to end of banner
Go to start of banner

SQL macro - 10.x

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

On this page

Description

Display values from SQL statements or scripts (or both) on Confluence pages. Statements can range from data manipulation language (DML), data definition language (DDL), data control language (DCL), and transaction control language (TCL) statements.

Usage Parameters

Macro Editor LabelDefaultDescriptionParameter
Data source name
Specifies the data source name. It represents an application server defined data source or data source profile defined by your administrator. This is a mandatory field.dataSource
Output formatHTML

Determines how the output is formatted:

  • HTML — Generates HTML from the result set data. Data is HTML encoded unless encoding has been disabled.
  • XHTML (Pro Edition) — Generates and renders XHTML from result set data. Data is HTML encoded unless encoding has been disabled (disableAntiXss).
  • 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.
  • 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.
output

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

Explore SQL Parameters

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



  • No labels