How to use parameter in SQL query macro

When I created a sql-query macro

And use Parameter in the macro like 

Set Parameter 1 as the table name

select count(*) from ? 

 

I got the error below, could any one let me know why it has that error?

 

Error rendering macro 'sql-query' : org.postgresql.util.PSQLException: ERROR: syntax error at or near "$1" Position: 22

1 answer

0 votes

Hi there,

Are you using an add-on for this, such as Bob Swift's SQL for Confluence? We want to make sure that the appropriate team members will be able to see this case.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,122 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you