Home » Java » Posting data result from MySQL to JTextArea

Posting data result from MySQL to JTextArea

Posted by: admin June 30, 2018 Leave a comment

Questions:

I have data in a MySQL database and I need to show it in a JTextArea:

ps = connection.prepareStatement("SELECT `Name`, FROM `users" + "SELECT `Post`, FROM `history");

I need to show the result of this Query in the TextArea.

Answers: