/
How to improve the display of SQL source - 8.x

How to improve the display of SQL source - 8.x

Summary

The Show SQL option in the SQL Macro and SQL Query Macro allows the SQL source to be displayed after the result data. This is helpful for problem determination and it also provides a way for users to copy the SQL for use in a slightly different query. With release 6.4, there are new options for controlling how the code is displayed.

The SQL is normally displayed with the default code macro. The new Options for showing SQL code (showSqlOptions) parameter allows you to enter a list of macro parameters to be applied to the code macro. Moreover, if you have the /wiki/spaces/CODE/pages/67666007 macro installed, you can use those parameters as well. 

Example

This uses the more advanced code-pro parameters that shows the source in a collapsed section.

After clicking SQL section:

Related content