try
{
Class.forName( "org.postgresql.Driver" ).newInstance();
String url = "jdbc:postgresql://localhost:5432/postgres" ;
Connection con = DriverManager.getConnection(url, "postgres" , "123" );
Statement st = con.createStatement();
return st;
}
catch (Exception ee)
{
System.out.print(ee.getMessage());
return null;
}

最新文章

  1. Shell入门教程:算术运算
  2. HTML与CSS
  3. 从新 开始学习java
  4. Parallel.Invoke并行你的代码
  5. JS实现图片上传预览效果:方法一
  6. MapReduce的输入输出格式
  7. 判断文件结束,feof……
  8. linux中安装easy_install(setuptools)
  9. 认识和理解css布局中的BFC
  10. Different ways of associating known types in wcf
  11. Nexpose
  12. constrain to margins
  13. 用sftp上传文件至linux服务器
  14. mysql 各类操作命令
  15. mpvue学习笔记-之微信小程序数据请求封装
  16. linux设置环境变量(这里以hive为例给大家举例)
  17. 使用Spring表达式语言进行装备--SpEL
  18. aptitude与apt-get的区别和联系
  19. C#DataTable复制、C#DataTable列复制、C#DataTable字段复制
  20. 使用蒲公英路由器 X3 设置为网络中继器

热门文章

  1. hdu4778:状压dp+博弈
  2. 深入理解linux网络技术内幕读书笔记(四)--通知链
  3. AndroidStudio常见提示
  4. 第19讲- UI组件之_Button、checkbox、radio
  5. 【转】TI蓝牙BLE 协议栈代码学习
  6. JSP简单练习-数组应用实例
  7. MVC4 成员资格、 身份验证
  8. [RxJS] Reactive Programming - Clear data while loading with RxJS startWith()
  9. JS 事件冒泡整理 浏览器的事件流
  10. Linux查看网络即时网速