Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I execute SQL with my plugin in Confluence ?

Hi everyone, i found a way to do it via jira, using 

org.ofbiz.core.entity.jdbc.SQLProcessor sqlProcessor = null;

sqlProcessor = new org.ofbiz.core.entity.jdbc.SQLProcessor("defaultDS");

ResultSet rs=sqlProcessor.executeQuery(SQL_QUERY);

how can this be done in confluence ?

1 answer

0 votes
Hana Kučerová Community Leader Mar 15, 2021

Hi @Alex ,

would you please provide us information what you are trying to achieve? Which query you want to execute and why? Thank you.

Hi)) I want to execute sql queries in db confluence like in jira, 
for example, execute 


 How can I do that with SQLProcessor in confluence?

Hana Kučerová Community Leader Mar 16, 2021

Hi @Alex ,

thank you. Please look at this article, whether it helps you.

It is still not very clear, what you're trying to do (besides getting the list of database tables). I'm asking because there are usually better ways how to achieve something then modify data directly in the database and I would strongly recommend you not to do it.

thank you))*

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,753 views 8 32
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you