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

This widget could not be displayed.

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
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

516 views 7 6
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