0% found this document useful (0 votes)
10 views1 page

Java SQL Student Data Display

The document contains Java code to connect to a database, execute a SQL query to select all records from the student table, and display the results in a JTable widget.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Java SQL Student Data Display

The document contains Java code to connect to a database, execute a SQL query to select all records from the student table, and display the results in a JTable widget.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

import [Link].

*;
import [Link];
import [Link];

Connection conn=null;
ResultSet rs=null;
PreparedStatement pst=null;

super("showdetails");
initComponents();
conn=[Link]();

// main class
try
{
String Sql = "select*from student";
pst=[Link](Sql);
rs = [Link]();
[Link]([Link](rs));
}
catch(Exception e)
{
[Link](null,e);
}
}

You might also like