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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

478 views 19 9
Join discussion

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