【文件属性】:
文件名称:简单查询-postgresql使用方法
文件大小:1.37MB
文件格式:PPT
更新时间:2021-04-25 21:27:51
postgresql
简单查询
Statement s = null;
try
{
s = c.createStatement();
}
catch (SQLException se)
{
System.out.println(“出错!");
se.printStackTrace();
System.exit(1);
}
ResultSet rs = null;
try
{
rs = s.executeQuery("SELECT * FROM books");
}
catch (SQLException se)
{
System.out.println(“出错!");
se.printStackTrace();
System.exit(1);
}