How to use the Expand array option in SQL for Confluence to view values with line break
How to use the Expand array option in SQL for Confluence to view values with line break
This article illustrates how to use the Expand array option in SQL for Confluence app.
Instructions
Create a sample table, test_address2, as shown in this example:
CREATE TABLE test_address2 (id int default NULL, first char(20) default NULL, last char(20) default NULL, city char(50) default NULL, children text[] );
Insert some values in the newly created test_address2 table as shown in the example:
INSERT INTO test_address2 VALUES (1,'Joe','Smith','Rochester', '{"roma","ruhi"}'); INSERT INTO test_address2 VALUES (2,'Mary','Jones','Chicago','{"ryan","rubby"}');
Edit the SQL macro and select Display settings > Advanced formatting tab.
Set the Expand array fields option as true, and click Save settings.
Click Save to apply the changes.
In the given example, if Expand array is enabled, values are displayed as:
If Expand array is disabled, values are displayed as:
The Expand array option works only when the rows are set to vertical under Data layout tab of the macro.
, multiple selections available, Use left or right arrow keys to navigate selected items