0

How can i export the table stored in a database into an excel file using node.js? I don't know how to build connection with the database and create a table in excel that looks like the table in database.

table

Thanks

1
  • This is highly dependent on the shape of your data. Commented Jun 28, 2016 at 14:39

1 Answer 1

1

I'm not an expert in node.js, but regarding the Excel part of your question: if you don't need a very complex sheet, then the simplest thing is to output the information in a command separated list, like:

header1,header2,...

value1,value2,...

Save it as .csv and Excel will be able to open it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.